[ESS] How to start another R-process with another version of R

Vitalie Spinu spinuvit at gmail.com
Tue Mar 20 12:09:35 CET 2012


>>>> Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk>
>>>> on Tue, 20 Mar 2012 10:51:26 +0000 wrote:

  > Ramon Diaz-Uriarte <rdiaz02 at gmail.com> wrote:
  >> 
  >> (I understand this might be an unusual scenario but ...)
  >> 
  >> But I think you cannot have arbitrary names. For instance, if you have a
  >> ~/bin where you keep links to a bunch of R versions, names such as R-devel
  >> or R-2.14 or R-2.14-my-test-number-99 will work out of the box. But if you
  >> want to use "R-my-test-number-99", it will not (nor will "R-2-d-2" or "R-3",
  >> etc). 
  >> 
  >> 
  >> If that is needed, the following (unorthodox?) approach seems to work

  >> (setq exec-path (append exec-path '("/home/ramon/bin")))
  >> (unload-feature 'ess-site t)
  >> ;; these are the links that live under ~/bin
  >> (setq ess-r-versions '("R-99" R-my-test-number-99" "R-2.14-patched" "R-2.14" "R-2.13" "R-devel")) 
  >> (require 'ess-site)
  >> (setq ess-use-inferior-program-name-in-buffer-name t)

  > Thanks Ramon; changing ess-r-versions is indeed the suggested way to
  > find other versions of R.  Doug Bates suggested addding
  > ess-r-versions-list to mirror ess-s-versions-list; this is on my todo
  > list which you can see in etc/sje-ess-notes.txt !

As far as the doc of ess-r-versions goes, you can just add "R-", and
have all your custom versions included.

Vitalie.



More information about the ESS-help mailing list