OSC / bc_osc_rstudio_server

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

Enable selection of version of R at launch time #3

Closed basilgohar closed 6 years ago

basilgohar commented 7 years ago

See the following feature request from Shameema:

I think the option to switch R version will be needed eventually as we don't install every versions of R at /usr/local/. The users can install their own R versions to have the compatibility with the CRAN package of thier interest and still call the RStudio interface on OnDemand.

This was in response to asking her the question if being able to choose the version of R at launch time would be desired.

brianmcmichael commented 7 years ago

Two options have been suggested,

1) Allow the user to select the version prior to launch. 2) Allow the user to select the version in-app via a dropdown.

Option (2) appears to only be available in the paid Pro version. We are using the free open-source version. See: https://support.rstudio.com/hc/en-us/articles/200486138-Using-Different-Versions-of-R

Option (1) is theoretically possible under our architecture, but I have some concerns.

If multiple versions are a requirement, then our best bet may be to have multiple apps that each use a separate version. We would want each of those apps to launch a blessed version of R that we have confirmed to work. Currently, however, our only option is R/3.3.2. Advanced users could launch RStudio Server from the command line using their own versions.

nickjer commented 7 years ago

It seems this RStudio Server option looks interesting:

  --rsession-which-r arg              path to main R program (e.g. /usr/bin/R)

but would need to be explored.

nickjer commented 6 years ago

I will add a dropdown where the user can choose the version of R installed on Owens (similar to how we handle Abaqus). In particular I will be adding the new version of R that Shameema installed:

I have installed Rstudio 1.1.380_server that binds to R/3.4.2.