Choose R version for one specific project

Are you using RStudio Desktop, or RStudio Server? Project-specific R versions are a feature of RStudio Server Pro (see: https://support.rstudio.com/hc/en-us/articles/212364537-Using-multiple-versions-of-R-with-RStudio-Server-Pro).

As far as I know, RStudio Desktop can only use one version of R at a time. How this works is dependent to some extent on your operating system. See: https://support.rstudio.com/hc/en-us/articles/200486138-Changing-R-versions-for-RStudio-desktop

Another option might be setting up a Docker/rocker container for that project. There’s some useful discussion of Docker and R here:

2 Likes