I have a requirement where a user wants to use a specific version of R in the Workbench.
According to the documentation, I created /etc/rstudio/profiles file and added following content in it.
However, this doesn't seem to be working and I don't see the R version installed inside /home/user/mambaforge/envs/r_env on the Workbench. Please suggest.
What do you mean by "this doesn't seem to be working"? Do you get any sort of error message, either directly in the GUI or in the (session) logs?
Where does this R installation come from? Is it from a conda environment? In that case I do not expect this to work since Workbench has no way of activating the environment before trying to use the R installation. In addition, conda environments bring along many libraries that conflict with system installed ones. that causes problem since the rsession binary is linked against system libraries but needs to link against libR.so from the R installation.
Can you ask the user why they want to use this special R version?