Skip to content

Commit 54c9695

Browse files
HammadTheOnerpkyle
andauthored
Added deprecation warning if dcc, html, or table packages are attached (#249)
* Added deprecation warning * Update R/dash.R Co-authored-by: Ryan Patrick Kyle <[email protected]> Co-authored-by: Ryan Patrick Kyle <[email protected]>
1 parent 0aec5f8 commit 54c9695

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/dash.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,11 @@ Dash <- R6::R6Class(
14461446
})
14471447
}
14481448

1449+
attached_packages = .packages()
1450+
if (any(c("dashCoreComponents", "dashHtmlComponents", "dashTable") %in% attached_packages)) {
1451+
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."))
1452+
}
1453+
14491454
self$server$ignite(block = block, showcase = showcase, ...)
14501455
}
14511456
),

0 commit comments

Comments
 (0)