From 4e89c86907421409dd4f89c04ac348483555d0d4 Mon Sep 17 00:00:00 2001 From: hammadtheone Date: Wed, 19 May 2021 01:28:36 -0400 Subject: [PATCH 1/2] Added deprecation warning --- R/dash.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/dash.R b/R/dash.R index afdbda42..72bf2ba6 100644 --- a/R/dash.R +++ b/R/dash.R @@ -1446,6 +1446,11 @@ Dash <- R6::R6Class( }) } + attached_packages = .packages() + if (any(c("dashCoreComponents", "dashHtmlComponents", "dashTable") %in% attached_packages)) { + message("\U{26A0} Note: As of version 1.0, the following packages are deprecated and should no longer be installed or loaded when using Dash for R: `dashHtmlComponents`, `dashCoreComponents`, `dashTable`. These components are now bundled within the `dash` package.") + } + self$server$ignite(block = block, showcase = showcase, ...) } ), From 278b32aaf26189062ef70603760d5f1e076508c9 Mon Sep 17 00:00:00 2001 From: HammadTheOne <30986043+HammadTheOne@users.noreply.github.com> Date: Thu, 20 May 2021 09:21:35 -0400 Subject: [PATCH 2/2] Update R/dash.R Co-authored-by: Ryan Patrick Kyle --- R/dash.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/dash.R b/R/dash.R index 72bf2ba6..8dcba7be 100644 --- a/R/dash.R +++ b/R/dash.R @@ -1448,7 +1448,7 @@ Dash <- R6::R6Class( attached_packages = .packages() if (any(c("dashCoreComponents", "dashHtmlComponents", "dashTable") %in% attached_packages)) { - message("\U{26A0} Note: As of version 1.0, the following packages are deprecated and should no longer be installed or loaded when using Dash for R: `dashHtmlComponents`, `dashCoreComponents`, `dashTable`. These components are now bundled within the `dash` package.") + message(strwrap(prefix = "\n", initial = "", "\U{26A0} Note: As of version 1.0, the following packages are deprecated and should no longer be installed or loaded when using Dash for R: `dashHtmlComponents`, `dashCoreComponents`, `dashTable`. These components are now bundled within the `dash` package.")) } self$server$ignite(block = block, showcase = showcase, ...)