Profile in Posit Workbench

Hello,

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.

[user]
r-version = /home/user/mambaforge/envs/r_env

Following are the content of /home/user/mambaforge/envs/r_env:

 fonts
 x86_64-conda_cos6-linux-gnu
 x86_64-conda-linux-gnu
 ssl
 man
 cmake
 sbin
 libexec
 compiler_compat
 var
 etc
 include
 lib
 share
 bin
 conda-meta

Thanks in advance
Rishi

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?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.