From 65b370876e38f56a2f4d8ea098d7a694d1d9886a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Ver=C3=ADssimo?= <211358+averissimo@users.noreply.github.com> Date: Fri, 8 Nov 2024 10:04:01 +0000 Subject: [PATCH] `teal.data::datanames()` is deprecated in favor of dot-prefix and `ls()` (#226) # Pull Request Part of https://github.com/insightsengineering/teal.data/issues/333 Blocked by: - https://github.com/insightsengineering/teal.code/pull/218 - https://github.com/insightsengineering/teal.data/pull/347 --- DESCRIPTION | 2 +- R/utils.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 5dc0fa97..26214175 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -31,7 +31,7 @@ Imports: shinyjs, shinyvalidate (>= 0.1.3), stats, - teal.data (>= 0.5.0), + teal.data (>= 0.6.0.9015), teal.logger (>= 0.1.3.9013), teal.widgets (>= 0.4.2), tidyr (>= 1.0.0), diff --git a/R/utils.R b/R/utils.R index 44d034fe..21ba4956 100644 --- a/R/utils.R +++ b/R/utils.R @@ -177,7 +177,7 @@ convert_teal_data <- function(datasets) { }) } else if (is.reactive(datasets) && inherits(isolate(datasets()), "teal_data")) { sapply( - isolate(teal.data::datanames(datasets())), + isolate(names(datasets())), function(dataname) { reactive(datasets()[[dataname]]) },