Switching conda environments with rstudio[server]?



Suppose I have conda environments such as renv1 and renv2. I have set rstuido to look for R in /home/me/conda/bin. Now, how do tell rstudio to use one of my conda environments?

I tried reticulate, but that appears to only work with Anaconda, not conda. At least that's the error I get.

Is there a vanilla way?


reticulate provides the helper functions reticulate::use_condaenv() for this purpose. Does that do what you need?