[ESS] specify version of R?

Joshua Wiley jwiley.psych at gmail.com
Fri Sep 9 17:42:49 CEST 2011


Hi Martin,

Thanks for all the information.  That was extremely helpful.  Fixing
ess-r-versions-created got me going :)

Thanks again,

Josh

On Thu, Sep 8, 2011 at 12:37 AM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
>>>>>> Joshua Wiley <jwiley.psych at gmail.com>
>>>>>>     on Wed, 7 Sep 2011 21:35:47 -0700 writes:
>
>    > Hi,
>
>    > I am using Vincent Goulets distribution Emacs 23.3 with ESS 5.14 on
>    > Windows 7 x64.  I do a nonstandard R install into C:/R/.  Typically, I
>    > run R devel, which I do happily:
>
>    > (setq inferior-R-program-name "C:/R/R-devel/bin/x64/Rterm.exe")
>
>    > in my .emacs file.  My issue is that occassionaly it would be
>    > convenient to use one of the stable versions of R (now, for example,
>    > 2.13.1).  I tried, perhaps misguidedly, adding:
>
>    > (setenv "PATH" (concat (getenv "PATH") "C:/R/"))
>    > (setq exec-path (append exec-path '("C:/R/")))
>
> If you start up emacs with*out* all the above three settings,
> and then type
>
>    M-x R- [Tab]
>
> (the tabulator key)
> what do you see?
>
> On my Windows Server machine, where I've also installed
> Vincent's Emacs+ESS setup, and where I install R into the
> standard location, I get the following buffer (named
> '*Completions*'):
>
> --------------------------------------------------------------------
> Click <mouse-2> on a completion to select it.
> In this buffer, type RET to select the completion near point.
>
> Possible completions are:
> R-2.10.1        R-2.11.1        R-2.12.0-32bit
> R-2.12.0-64bit  R-2.12.2-32bit  R-2.12.2-64bit
> R-2.13.0-32bit  R-2.13.0-64bit  R-2.13.1patched-32bit
> R-2.13.1patched-64bit   R-2.6.2         R-2.8.1
> R-2.9.2         R-fix-T-F       R-mode
> R-newest        R-site-search   R-transcript-mode
> --------------------------------------------------------------------
>
> where you see my several different versions of R available,
> including both the 32- and the 64-bit version from 2.12.x on.
>
> Alternatively, look at the (emacs lisp) variable
>     ess-r-versions-created
>
> If yours don't look good,
> you need to fix up your   ess-rterm-version-paths
> possibly reading its doc first
> [ C-h v ess-rterm-version-paths ]
>
> I hope this helps you going.
> Martin
>
>
>    > with the hope that ESS would find all the versions of R installed on
>    > my system, but it only seems to find the R devel one.  If that is not
>    > possible, I would be happy to manually add it to my .emacs file so
>    > that I could run, say, "M-x Rstable".  I hope I am providing the
>    > appropriate information.
>
> Yes, there would always be possibilities to do that manually;
> I have done that many years ago, before we made ESS much smarter
> in autodetecting "all" R versions available...
> even on Windows.
>
>    > Thanks for any suggestions.
>
> what happens after starting emacs
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the ESS-help mailing list