Skip to content

Commit

Permalink
feat: update to remove all @env mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo committed Oct 30, 2024
1 parent b3fe731 commit 8406a83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions R/teal_data-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand All @@ -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)),
Expand Down
2 changes: 1 addition & 1 deletion R/teal_data-show.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})

0 comments on commit 8406a83

Please sign in to comment.