From f7894e55f3fed4c282df2a2db72c98a4e47bb3e0 Mon Sep 17 00:00:00 2001 From: m7pr Date: Tue, 29 Oct 2024 10:21:12 +0100 Subject: [PATCH] add a warning --- R/teal_data-extract.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/teal_data-extract.R b/R/teal_data-extract.R index 64d569bce..0df590254 100644 --- a/R/teal_data-extract.R +++ b/R/teal_data-extract.R @@ -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