I want to run multi version R on linux, because I want to test different bioconductor package version. but R studio only support one version at a time. And I can not afford R studio pro. So I am wondering whether some one can recommend some other IDE for R in bioinformatics anlysis :).
The simplest solution would probably be to install multiple versions of R(Studio) via a package manager such as conda into separate environments created with conda create. You should probably ask yourself though whether such an endeavor is really what your analysis needs (I assume you have trouble somewhere), and whether it is worth the bother rather than figuring out what the true underlying cause of the troubles are beyond package versions.
Thanks, Dr Toenges :). Actually, the balance between update and matain alwasy confuses me. For example, I have know some bugs in the package of bioconductor and the pakcages have fixed the bug in the newest version. I am not sure whether I should update R for the newest package or I just use the old version.
Ah, I see. Would you need to upgrade your R and Bioconductor version as well? This then of course would mean that other packages get upgrades as well, making it difficult to exactly reproduce results from previous analysis. I guess a separate environment would in fact be the simplest. There are other ways to make separate environments as well, e.g. venv/virtualenv (python).
You could consider using something like packrat (I believe there's a newer "model" called renv) - this would isolate r and versioned packages per project, which would work better with R Studio as RStudio should pick up the appropriate R binary when you open a project.
EDIT: On reading the renv docs, it's not clear if it supports multiple R versions. I'd still give it a shot though.
The Linux system in my institution have several R versions and several Rstudio versions running in parallel. This is managed by the SysAdmin, but I think it's "simply" a question of installing them on different directories. In addition, I'm pretty sure you can set an environment variable before starting Rstudio to tell it what version of R to use, so you can have multiple instances running on different R versions at the same time.
In this specific case this is (I guess) not possible as OP is using Bioconductor. Bioc package versions are tied to Bioc versions itself which again are tied to R versions. One would need to explicitely use a different R version prior to your suggestion, any idea for that?
BiocManager allows you to install "local" packages.
You could download all the different version from bioconuctor and install them using different location (e.g setting different Rlibs)
A quite convoluted way, but possible....I think.
There's always Emacs..
hhh, I have decided to use vscode-R :)