How to configure shortcut for different versions of R in RStudio?

Using Rstudio, it’s easy to configure it for different versions of R. You simply go to /Tools/Optionsand choose your preferred version of R.

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

My use case is that I often want to run and compare scripts in different versions of R, for example:

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

It would be useful to set this as a one-click shortcut, rather than navigate through the menu every time.

(I think this is best suited for Superuser , but in my opinion, the answer to this question is most likely to be found here in StackOverflow.)

What do I need to do to set up such a shortcut?

Additional Information: I am running Windows.

+5
source share
1 answer

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

From the link you sent :

Note that by holding the Control key while starting RStudio, you can call up the R version selection dialog at startup.

+6
source

All Articles