Skip to content

Commit

Permalink
Update R/teal_data-extract.R
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Kałędkowski <[email protected]>
Signed-off-by: Marcin <[email protected]>
  • Loading branch information
m7pr and gogonzo authored Oct 30, 2024
1 parent b6c6955 commit 009bbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/teal_data-extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#'
#' @export
`[.teal_data` <- function(x, names) {
checkmate::assert_class(names, "character")
checkmate::assert_character(names)
names <- intersect(names, ls(get_env(x)))
if (!length(names)) {
warning("None of `names` elements exist in `teal_data`. Returning empty `teal_data`.")
Expand Down

0 comments on commit 009bbc0

Please sign in to comment.