I am currently running Rstudio server, and now Rshiny server on Ubuntu 12.04.
I have some shared objects outside of the standard LD_LIBRARY_PATH locations that are used by some custom packages I use at work. I want to use these packages with Shiny.
I am able to set the LD_LIBRARY_PATH for Rstudio server no problems by following these steps: http://www.rstudio.com/ide/docs/server/configuration
But I am unable to find a way to edit the LD_LIBRARY_PATH for shiny server, where the user is root (Default configuration set by you guys). How can I do this for shiny-server, to add additional paths?
When I run sudo su -c R, and type system("env") in the R session, I see that LD_LIBRARY_PATH=/usr/lib/R/lib:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server
but my attempts at appending to LD_LIBRARY_PATH in various ways have not worked.
I am guessing editing of rstudio-server.conf located in /etc/init may be necessary but I don't know how to set the environmental variable correctly.
I've tried variations of the answers provided to thishttp://stackoverflow.com/questions/21585497/connecting-to-an-oracle-database-with-roracle-on-shiny-server
but it doesn't work -- when I open the R session the LD_LIBRARY_PATH is not appended.
Furthermore, how can I append additional directories to libPaths() when R shiny-server loads, without "manually" adding to the top of the ui script .libPaths() <- c("[new location]", .libPaths())