How can I specify the R version opened by ESS session in emacs? [duplicate]
问题 This question already has answers here : ESS to call different installations of R (2 answers) Closed 6 years ago . 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=