Open matdoering opened 7 years ago
I actually had similar issues and found a fix here. It seems the shinyBS
resources are included with .onAttach
rather than .onLoad
(see source file).
My fix was to add the following lines somewhere in global.R
or outside the app.
shiny::addResourcePath("sbs", system.file("www", package="shinyBS"))
The documentation of shinyBS states that shinyBS should be attached after loading shiny in server.R/ui.R. However, for packages providing a shinyApp utilizing shinyBS it would be beneficial if attaching shinyBS wasn't a requirement. Indeed, when shinyBS it not attached, it seems that everything works fine except for updating bsCollapes.
Here's an example based on bsExample("Collapses"). Note that the collapses don't change when shinyBS is not loaded via library().
ui.R
server.R