From 8406a837293dc943317e7fbc3ea19559b6ae52d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:57:04 +0000 Subject: [PATCH] feat: update to remove all @env mentions --- R/teal_data-class.R | 6 ++---- R/teal_data-show.R | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/R/teal_data-class.R b/R/teal_data-class.R index 23fc7c8e6..d218ec281 100644 --- a/R/teal_data-class.R +++ b/R/teal_data-class.R @@ -51,9 +51,7 @@ setClass( #' @param join_keys (`join_keys`) object #' @rdname new_teal_data #' @keywords internal -new_teal_data <- function(data, - code = character(0), - join_keys = join_keys()) { +new_teal_data <- function(data, code = character(0), join_keys = join_keys()) { checkmate::assert_list(data) checkmate::assert_class(join_keys, "join_keys") if (!any(is.language(code), is.character(code))) { @@ -75,7 +73,7 @@ new_teal_data <- function(data, methods::new( "teal_data", - env = new_env, + .xData = new_env, code = code, warnings = rep("", length(code)), messages = rep("", length(code)), diff --git a/R/teal_data-show.R b/R/teal_data-show.R index b47f29c10..fca8cf66e 100644 --- a/R/teal_data-show.R +++ b/R/teal_data-show.R @@ -16,5 +16,5 @@ setMethod("show", signature = "teal_data", function(object) { } else { cat("\u2716", "unverified teal_data object\n") } - rlang::env_print(object@env) + rlang::env_print(teal.code::get_env(object)) })