Toggle between R versions?


Does RStudio allow me to toggle between R versions? (I'm running RStudio Version 1.1.383)

I don't see anything in preferences->general or preferences->code

Or, can I specify an R version from the command line at startup?

I'm trying to resolve an incompatibility problem:

Installing package into ‘/Users/rcphelps/Library/R/3.3/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘rethinking’ is not available (for R version 3.3.3)


Toggling between different R versions is a part of RStudio Server Pro, so not sure how easy it is and for sure not possible for RStudio out of the box.


For RStudio Desktop, you can choose the version of R to some extent (it works differently in different OSes), but it’s more involved than a toggle. See here:


Are you looking for this :package:

If so, it seems it is not available on CRAN. It is why you don't find it when trying to install. No issue with your R version.

You can follow these instructions to install


thank you. I got it.


Hi All,

I asked same question long back. Just plugging here for others benefit.

For Visual Studio IDE this seamless change of R versions is available on or freemium version.

Chetan Arvind Patil


Looks like you can also do this with RStudio Server Pro: