Skip to content

Javascript of third-party library not found #279

Answered by dmenne
dmenne asked this question in Q&A
Discussion options

You must be logged in to vote

A workaround for packages that fail to add the correct resource path. The example is for shinyBS

  • add library(shinyBS); don't care about the module may cause issues warning
  • When things work with this addition:
  • print(resourcePaths()) after library shinyBS
  • You will see a list, and the relevant line is
                            sbs 
                          "C:/R/R-4.2.0/library/shinyBS/www" 
  • remove the library call, add
shiny::addResourcePath("sbs", system.file("www", package = "shinyBS"))

No more warnings

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dmenne
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants