[ESS] calling a local installation of R from emacs

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Fri May 6 10:00:47 CEST 2011


Sashi Challa <challa at ohsu.edu> wrote:

> 
> I have emacs-ess installed on my unix machine.When ever I call R from emacs I get  particular version of R.
> Recently I had to test some packages so I installed R locally in a directory. Now I want to be able to call this particular R version from emacs.
> What exactly should I editing or adding for this purpose. I want to be
> able to call both my default and local installation of R.

yes, this is possible (and not clearly documented yet).  

Something like:

ln -s  /your/local/version/R  ~/bin/R-2-my-local

Assuming you have write permissions to a directory such as ~/bin which
is on your $PATH

Then restart Emacs; what you should find is that

M-x R-2-my-local 

will start your local version of R. 

See the documentation of ess-r-versions  -- in particular the above
assumes you call your version of R something beginning with e.g. "R-2"

Stephen



More information about the ESS-help mailing list