install multiple different versions of R in ubuntu 18.04

How I can install multiple different versions of R in Ubuntu 18.04?

1 Like

Hi @rnsarma,

Are you planning to use these versions of R with an RStudio product?

RStudio Server Pro and RStudio Connect both work well with multiple versions of R. Our open source products are designed to be used with only one version of R at a time.

Here is our suggested R install path: https://docs.rstudio.com/resources/install-r/

Please feel free to respond with any further questions!

Thank you for your response. I want to use different versions of R in R studio for desktop open source edition in Ubuntu 18.04. please suggest.

Hi @rnsarma,

There may be workaround you can use, but RStudio desktop is not designed to be configured with multiple versions of R. This is a feature of RStudio Server Pro if you find that would be helpful.

You can configure which version of R to use in your .Rprofile, so that would be where I would start trying things. https://support.rstudio.com/hc/en-us/articles/200486138-Changing-R-versions-for-RStudio-desktop

Good luck!

@rnsarma,

I wrote a bash script just for this purpose. It can be found on github as a gist here:
https://gist.github.com/seakintruth/95d49b6ea316c2b8a6e283e1ee1a3f3a

I wrote up my thought process in this blog post here:
https://www.bsetmet.com/index.php/2019/05/26/gist-rstudio-vsersions-ubuntu/

@SESR, I noticed you posted a similar question on the closed topic here:
Change R version to a previous one! (ubuntu 18)

I wrote a bash script just for this purpose. It can be found on github as a gist here:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.