When I build, load and run my own package, it is only using shinyBS functionalities if i beforehand load shinyBS with 'library(shinyBS)' otherwise tooltips are not working.. and although the shiny app works (whithout shinyBS features) there are webpage errors that can be seen through the browser console.. (about some missing files..shinyBS.css and shinyBS.js)
So the questions is: How can i generate, deploy and run my own shiny package without forcing the user to load shinyBS beforehand (doing 'library(shinyBS)' ) ?!
Thank you!
You should use
NAMESPACEto declare that you needshinyBSloaded in your package.For example in your
NAMESPACEfile you should do:Furthermore, as noticed by @r2evans, you should add
shinyBSin theImportspart of yourDESCRIPTIONfile:For more information check the R package website from Hadley Wickam: http://r-pkgs.had.co.nz/namespace.html#imports.