Search code examples
rshinyshiny-server

Shiny Server can't find package


I know that I do not have a lot of information here, but I am trying to deploy an app over Shiny Server with the new shinydashboard package. I have installed shinydashboard,

devtools::install_github("rstudio/shinydashboard")
library(shinydashboard)

but when I run my app over the server, I get an error saying:

"ERROR: there is no package called ‘shinydashboard’"

I have checked and know that the devtools version was installed in the same directory as all of my other packages, so I am not sure what the issue is.


Solution

  • You need to align your .libPath() between "your" session what the shiny server sees. You can actually designate an installation directory when running install.packages(), and for this very reason I always do (via a script).