OSC / bc_osc_rstudio_server

Batch Connect - OSC RStudio Server
https://osc.github.io/Open-OnDemand/
MIT License
10 stars 18 forks source link

Support multiple R versions using RSTUDIO_WHICH_R #12

Closed ericfranz closed 6 years ago

ericfranz commented 6 years ago

From Shameema:

In theory, rstudio should work with different versions of R. Rstudio server Pro has a dropdown menu to pick R version after launching Rstudio. Unfortunately, this feature is not available for open-source. During the installation of Rstudio server, I had to pick a R version to go with. This restriction can be altered by setting RSTUDIO_WHICH_R environmental variable before launching Rstudio. Could we test this?

module switch R/3.5.0 # switch might be necessary as rstudio/1.1.380_server requires prereq("R/3.4.2")
export RSTUDIO_WHICH_R=/usr/local/R/3.5.0

Then launch rstudio-server-1.1.380 to see if it can load R/3.5.0.

Corresponding incident is INC0330879.