[ESS] cannot get ess to work with emacs and R

Vincent Goulet vincent.goulet at dgfc.ulaval.ca
Mon Feb 11 17:03:19 CET 2013


Le 2013-02-11 à 10:58, "Kevin R. Coombes" <kevin.r.coombes at gmail.com> a écrit :

> Well, R is not always installed in the usual place. (There was a period 
> of time when having spaces in path names on Windows would break 
> everything, so I got in the habit of putting R somewhere other than 
> "Program Files".  And I never trust things to stay "not broken".)
> 
> But you can still put R (consistently) somewhere else and not have to 
> change your .emacs file every time you upgrade R or ESS. Do not change 
> the "inferior-R-program-name".  Instead, I do this (where R is installed 
> in "C:/R/R-2.15.1" and similar locations for other versions)
> 
> (setq ess-directory-containing-R "C:")
> (require 'ess-site)

Yup! That's right. But I think this is a fairly recent feature of ESS. Definitely the way to go if you want/need to install R in an uncommon place.

v.

> 
> 
> On 2/11/2013 8:15 AM, Vincent Goulet wrote:
>> ... and then you'll end up having to edit your config for each new installation (update) of R.
>> 
>> As long as R is installed in its "usual" place, let ESS find it with its built-in "intelligence". The ESS developers worked hard to find a solution to this problem. It works flawlessly in my distribution and presumably for many more people.
>> 
>> Vincent Goulet
>> iPad
>> 
>> Le 2013-02-11 à 05:04, "Oliver Jones"<ojones at wiwi.uni-bielefeld.de>  a écrit :
>> 
>>> Hi,
>>> 
>>> I'm an amateur in Emacs, but I had some similar problem. Try to set the
>>> inferior-R-program-name variable before you load ESS, i.e. just kill (Emacs language for cut)
>>> the line
>>> (setq inferior-R-program-name "c:/progra~1/R/R-2.15.0/bin/i386/Rterm.exe")
>>> and yank (Emacs language for paste) it before the line
>>> ; ESS
>>> 
>>> Best
>>> Oliver
>>> 
>>> Am 08.02.2013 17:42, schrieb leah martell:
>>>> ; ESS
>>>> ;(require 'ess-site)
>>>> (load "C:/ess/ess-12.09-2/lisp/ess-site")
>>>> 
>>>> (setq inferior-R-program-name "c:/progra~1/R/R-2.15.0/bin/i386/Rterm.exe")
>>> -- 
>>> _______________________________________________________________________________
>>> Universität Bielefeld
>>> Fakultät für Wirtschaftswissenschaften
>>> Lehrstuhl für Ökonometrie und Statistik
>>> Raum / room:  V9-108
>>> Tel / phone:  +49 (0)521 106 4895
>>> http://www.wiwi.uni-bielefeld.de/oekonometrie.html
>>> 
>>> ______________________________________________
>>> ESS-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list