Skip to content

Commit

Permalink
limit names in get_code.teal_data to x@datanames
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Nov 16, 2023
1 parent 2e7eae1 commit 213a215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/get_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ get_code.teal_data <- function(x, names = NULL, deparse = TRUE, ...) {
check_ellipsis(...)
checkmate::assert_character(names, min.len = 1L, null.ok = TRUE)
checkmate::assert_flag(deparse)
checkmate::assert_subset(names, x@datanames, empty.ok = TRUE)

code <- if (!is.null(names)) {
get_code_dependency(x@code, names)
Expand Down

0 comments on commit 213a215

Please sign in to comment.