Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set up a shortcut for different versions of R in RStudio?

Using Rstudio, it is easy to configure it for different versions of R. You simply navigate to /Tools/Options and select your preferred version of R.

But is there an easy way to set up a menu (or desktop) shortcut or a command line script to point to different versions of R?

My use case is that I frequently want to run and compare scripts in different versions of R, e.g:

  • R-2.15.3
  • R-devel (R-3.0.0)

It would be useful to set this up as a single click shortcut, rather than navigating the menus each time.

(I appreciate this may well be better suited for Super User but in my view the answer to this question is more likely to be found here, at StackOverflow.)

What should I do to configure such a shortcut?

Additional information: I am running Windows.

like image 568
Andrie Avatar asked Mar 18 '13 15:03

Andrie


1 Answers

Can't you just hold down control when you click on your desktop shortcut?

From the link you posted:

Note that by holding down the Control key during the launch of RStudio you can cause the R version selection dialog to display at startup.

like image 142
Simon O'Hanlon Avatar answered Oct 19 '22 23:10

Simon O'Hanlon