We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 054c911 + 90c00be commit 24a8f8fCopy full SHA for 24a8f8f
R/globals.R
@@ -7,3 +7,17 @@
7
# the private seed during load.
8
withPrivateSeed(reinitializeSeed())
9
}
10
+
11
+.onAttach <- function(libname, pkgname) {
12
+ # Check for htmlwidgets version, if installed. As of Shiny 0.12.0 and
13
+ # htmlwidgets 0.4, both packages switched from RJSONIO to jsonlite. Because of
14
+ # this change, Shiny 0.12.0 will work only with htmlwidgets >= 0.4, and vice
15
+ # versa.
16
+ if (system.file(package = "htmlwidgets") != "" &&
17
+ utils::packageVersion("htmlwidgets") < "0.4") {
18
+ packageStartupMessage(
19
+ "This version of Shiny is designed to work with htmlwidgets >= 0.4. ",
20
+ "Please upgrade your version of htmlwidgets."
21
+ )
22
+ }
23
+}
0 commit comments