What is the error report from shiny server process when it starts?
Can you confirm the user which is used to run R process (shiny by default) can run R from the custom location?
Rgds,
Peter
I have partly fixed the problem by doing a softlink from /usr/bin/R to the custom R. But often things still fail as a list of libraries need to be loaded too.
I've also tried setting up the Environment on the command line and running
/opt/shiny-server/bin/shiny-server --pidfile=/var/run/shiny-server.pid >> /var/log/shiny-server.log 2>&1
directly from the command line.
The error in the log is
Warning: Error in .rasterObjectFromFile: Cannot create RasterLayer object from this file; perhaps you need to install rgdal first
Stack trace (innermost first):
because R shiny has not got the Right environment.
I do not know if you have solved this by now. I had the same problem, i.e. trying to run a shiny app on a shiny server with R and R libraries in non-standard locations, loaded by environment modules.
My solution is to run the shiny server as user shiny, and load the modules in the .profile file of user shiny (not the .bashrc, because user shiny uses the bourne shell).
Hope this helps,
Georg