Change system wide library path for shiny server ?

I have following two lib paths :

System wide - /usr/local/lib/R/site-library
User specific - /home/user/R/x86_64-pc-linux-gnu-library/3.0/

As I am not root user so I cannot install packages on system wide lib path so usually I install it on my user lib path.

When I am executing any shiny application it is throwing error that package is not installed because shiny-server looks for packages in system wide lib path.

Can anyone answer this if by any chance we can change the path of library for shiny-server from system wide lib to user lib ?

Shiny-server uses the libpath for the run_as user (shiny by default), you can modify your run_as variable and run your applications as your own user instead of shiny or login as shiny and install the packages for that user.

The config file is on this location /etc/shiny-server/shiny-server.conf

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.