Toggle between R versions?


#1

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:

install.packages("rethinking")
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)


#2

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.


#3

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:


#4

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
http://xcelab.net/rm/software/


#5

thank you. I got it.


#6

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.

Thanks,
Chetan Arvind Patil


#7

Looks like you can also do this with RStudio Server Pro: https://www.rstudio.com/products/rstudio-server-pro/