R shiny / shiny-server - issue with finding packages

假装没事ソ 提交于 2019-12-03 01:28:17

Sorry for the troubles. Can you try running the following command to install Shiny system-wide?

sudo su - \
  -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""

This comes from the Admin Guide which (hopefully) will serve as a useful resource on these kinds of issues.

I suspect that the problem is that Shiny is indeed properly installed in your user account, but because it wasn't installed as sudo, it's not available to the shiny user.

Edits:

You'll also need to make sure that Rprofile.site is being applied when the shiny user starts an R process. You can do this by logging in as shiny:

sudo su shiny

Then opening R and checking the .libPaths() or seeing if you can successfully run library(shiny) there. If you're not able to, there's probably an issue with letting the shiny user get into your shared packages directory or your Rprofile.site file (or its parent directory). Ensure that the shiny user is added to the necessary groups or that these files and all of their parent directories grant the appropriate permissions to the shiny user.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!