When I want to open an R session in emacs, I use M-x R
.
However, our server has both R 2.12 in /usr/bin/R and R 2.15 in /usr/local/bin/R. Actually, if I ask whereis R
, I get the following:
$ whereis R
R: /usr/bin/R /usr/local/bin/R /usr/local/bin/R2.15 /usr/local/bin/R2.12
/usr/local/bin/R2.7 /usr/include/R /usr/share/R /usr/share/man/man1/R.1.gz
When I try to export "R_HOME=/usr/local/bin/R2.15" from .bashrc, emacs says "WARNING: ignoring environment value of R_HOME"
Is there a way to choose which instance of R is launched? Currently, 2.15 is launched when I type R at the command line, even though M-x R
launches 2.12.