Skip to content

Commit

Permalink
add a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 29, 2024
1 parent fd4fe27 commit f7894e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/teal_data-extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
checkmate::assert_class(names, "character")
names_in_env <- intersect(names, ls(get_env(x)))
if (!length(names_in_env)) {
warning("None of `names` elements exist in `teal_data`. Returning empty `teal_data`.")
return(teal_data())
}
# From ?NextMethod
Expand Down

0 comments on commit f7894e5

Please sign in to comment.