I noticed that my organization updated our RStudio Server open source to Version 1.4.1106. With this newer version, users have access to the following file: ~/.config/rstudio/rstudio-prefs.json
. This article suggests that I can edit that file to change the default version of R that appears for me, as a user, in RStudio. Specifically, I should be able to add something like the following to be able to use R 4.0.2 as my default version of R:
"default_r_version": {
"version": "4.0.2",
"r_home": "/opt/R/R-4.0.2",
"label": "Taking Off Again"
},
For some reason, after I edit and save the file, the file keeps getting overwritten or defaults back to the original script. Is there a setting that my system admins need to change to ensure that users can successfully change their default version of R by allowing their edits to rstudio-prefs.json to get saved? Or, is everything likely to be configured correctly at the admin level, and is there something I need to do differently as a user?
The same article I mention above references older RStudio Server pro documentation. The documentation mentions the XDG_CONFIG_HOME
environmental variable. It's not clear what this environmental variable should be set to (~/.config
or ~/.config/rstudio
) or whether setting it either in my .bash_profile
or in .Renviron
makes any difference.
If it helps in troubleshooting the problem, the server is operating on Linux.
Any guidance in trying to get this figured out would be greatly appreciated!
Thank you!