Multiple versions of R

Andreas Kiermeier Andreas.Kiermeier at adelaide.edu.au
Wed Apr 14 02:49:44 CEST 2004


Hi Martin and others,

running multiple versions of R in Emacs worked quite fine until the
latest upgrade to R 1.9.0. I doubt that it's got anything to do with
ESS, so I apologize if this message is considered off topic.

My path contains the bin folders of the 1.9.0, 1.8.1 and 1.7.1
installations of R (in that order). I also have copies of Rterm.exe named
R181.exe and R171.exe in the bin folder of 1.9.0.

When I only had 1.8.1 and 1.7.1 (with equivalent setup) I was able to
type R171 at the command prompt and start R 1.7.1.

Now, however, I get the message

c:\>R171
Error: R.DLL version does not match

Anyone got any clues as to what's going wrong or what I might have
stuffed up?

Cheers,

Andreas


>>>>> "Martin" == Martin Maechler <maechler at stat.math.ethz.ch> writes:

      >>>>> "Andreas" == Andreas Kiermeier <Andreas.Kiermeier at adelaide.edu.au>
      >>>>>     on Thu, 11 Dec 2003 10:25:27 +1030 writes:

    Andreas> Dear all, I have just recently run into a little
    Andreas> dilemma. Due to R's rapid development I have recently
    Andreas> found the need to run two versions of R - 1.7.1 for
    Andreas> completing simulations for my PhD, and the latest version
    Andreas> of R for consulting work. I would like to use ESS in both
    Andreas> case. Is there a way to have "M-x R" and "M-x R7", say,
    Andreas> similar to running different versions of S+?

    Andreas> I am running ESS version 5.1.21 on GNU Emacs 21.3.1 on
    Andreas> Windows 2000 (precompiled version).

    Martin> You need to make sure that something like "R-1.7" is in
    Martin> your PATH, i.e., works when typed in a "terminal".

    Martin> Then, use something like {I have} in the equivalent of
    Martin> your ~/.emacs (something like _emacs in Windows I think) :

    Martin> (defun R-1.5 (&optional start-args)
    Martin>   "Call R-1.5, i.e., R version 1.5.1 (2002-06-17) using ESS."
    Martin>   (interactive "P")(let ((inferior-R-program-name "R-1.5"))(R start-args)))
    Martin> (defun R-1.6 (&optional start-args)
    Martin>   "Call R-1.6, i.e., R version 1.6.2 (2003-01-10) using ESS."
    Martin>   (interactive "P")(let ((inferior-R-program-name "R-1.6"))(R start-args)))
    Martin> (defun R-1.7 (&optional start-args)
    Martin>   "Call R-1.7, i.e., R version 1.7.1 (2003-06-16) using ESS."
    Martin>   (interactive "P")(let ((inferior-R-program-name "R-1.7"))(R start-args)))
    Martin> (defun R-1.8 (&optional start-args)
    Martin>   "Call R-1.8, i.e., the latest R version 1.8.x using ESS."
    Martin>   (interactive "P")(let ((inferior-R-program-name "R-1.8"))(R start-args)))

    Martin> Then you can use  M-x R-1.7  etc 

-- 
Andreas Kiermeier
Discipline of Statistics
The University of Adelaide
Adelaide, SA 5005, Australia
Email: Andreas.Kiermeier at adelaide.edu.au
Mbl:    0423 028 565
Phone:	+61 8 8303 3971
Fax:	+61 8 8303 3696

----------------------------------------------------------- 
This email message is intended only for the addressee(s)\ an...{{dropped}}




More information about the ESS-help mailing list