[ESS] Multiple R versions not recognized on M-x R-[Tab]

Marius Hofert marius.hofert at uwaterloo.ca
Thu Apr 2 23:01:22 CEST 2015


Hoi Martin!

Works like a charm, thanks a lot.

[thanks also for the hint at 3.2.0]

Cheers to Zurich (and keep up the great work),

Marius


On Thu, Apr 2, 2015 at 4:07 PM, Martin Maechler
<maechler at stat.math.ethz.ch> wrote:
> Dear Marius  (and all the other readers),
>
> All your R versions must be in your PATH, i.e.,  the  <rbuild>/bin/R
> must be in your PATH,
> but of course not "as R" but  as "R-3..." or "R-devel.."
> and "the way" is to use symbolic links :
>
> e.g.
>
> cd /usr/local/bin
> ln -s  /usr/local/R/R-3.2.0_build/bin/R  R-3.2.0
>
> Hint:  R 3.2.0 went from "alpha" to "beta" today ... release is in
> about two weeks.
>
> Best regards,
> Martin
>
> On Thu, Apr 2, 2015 at 9:50 PM, Marius Hofert
> <marius.hofert at uwaterloo.ca> wrote:
>> Hi,
>>
>> I work on Debian Testing and installed ESS (M-x ess-version gives: 15.03 [git:
>> 6cbe608018deda6fa5608735c821094a553dd55c] (loaded from
>> /usr/share/emacs/site-lisp/ess/)) and have several R version installed. However,
>> I don't see them via M-x R-[Tab].
>>
>> I saw this post:
>> http://grokbase.com/t/r/ess-help/14aghnm1je/ess-setting-paths-to-r-versions-in-different-directories
>> and https://stat.ethz.ch/pipermail/ess-help/2011-September/007137.html
>> but neither gives precise instructions how to get the 'automagically determine R
>> versions' feature.
>>
>> Here are some more details:
>> - Emacs 24.4.1
>> - M-x ess-r-versions-created gives /usr/local/R/R
>> - M-x ess-rterm-version-paths gives nil
>> - M-x R-[Tab] gives:
>>
>> Possible completions are:
>> R-fix-T-F R-initialize-on-start
>> R-mode R-site-search
>> R-transcript-mode
>>
>> Judging from the second post above, I tried this:
>>
>> (setq ess-rterm-version-paths "/usr/local/R/R"); for finding all
>> installed R versions
>>
>> ... but M-x R-[Tab] still gives the same output as before
>>
>>
>> Concerning R installation, I installed from source in /usr/local/R:
>>
>>   /usr/local/R:
>>   total used in directory 55M available 147988960
>>   drwxr-sr-x 130 mhofert mhofert 4.0K 2015-04-01 22:52 library
>>   lrwxrwxrwx   1 mhofert mhofert   32 2015-03-31 15:57 R ->
>> /usr/local/R/R-3.1.3_build/bin/R
>>   drwxr-sr-x  15 mhofert mhofert 4.0K 2015-03-31 15:52 R-3.1.3_build
>>   drwxr-sr-x  10 mhofert mhofert 4.0K 2015-03-09 04:12 R-3.1.3_source
>>   -rw-r--r--   1 mhofert mhofert  28M 2015-03-09 04:12 R-3.1.3.tar.gz
>>   drwxr-sr-x  15 mhofert mhofert 4.0K 2015-04-02 15:16 R-devel_build
>>   drwxr-sr-x  10 mhofert mhofert 4.0K 2015-04-01 21:20 R-devel_source
>>   -rw-r--r--   1 mhofert mhofert  27M 2015-04-02 15:08 R-devel.tar.gz
>>
>> [this is a setup very similar to Martin has (I guess) -- he showed it to me once
>> and it has worked well ever since :-)]
>>
>> Many cheers,
>> Marius
>>
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>



More information about the ESS-help mailing list