[ESS] Telling ess where to look for R
Kevin R. Coombes
kevin.r.coombes at gmail.com
Tue Jan 22 17:08:47 CET 2013
My .emacs file contains the following two lines:
(setq ess-directory-containing-R "C:")
(require 'ess-site)
This works to find versions of R stored in C:\R\R-2.15.1, etc. On my
machine, it does NOT work if you interchange the order of the two lines.
After the ess-site code is loaded, something has already been set that
does not get changed when you set the ess-directory-containing-R variable.
-- Kevin
On 1/21/2013 12:19 PM, Oliver Jones wrote:
> No, that is not the problem.
> ESS finds R by default. The problem is, it finds just the properly
> installed, but old version of R, i.e. C:/Programme/R/R-2.10.1.
>
> I was looking for a way to tell ESS to look at
>
> C:\Dokumente und Einstellungen\ojones\Eigene Dateien
>
> because as the manual says ess-directory-containing-R is the variable
> containing the path to R.
>
> In the above directory I have to folders. One for each version of R, i.e.
>
> C:/Dokumente und Einstellungen/ojones/Eigene Dateien/R/R-2.15.2/
> and
> C:/Dokumente und Einstellungen/ojones/Eigene Dateien/R/R-2.15.0/
>
> But the variable ess-directory-containing-R seems to be ignored, as
> long as ESS finds any R-Version in the default location, i.e.
> (in English locales) c:/Program Files/R/
> (in German) c:/Programme/R/
>
> The manual dosen't make this clear!
>
> So the solution in my case was to M-x customize-variable RET
> inferior-R-program-name RET to
> "C:/Dokumente und Einstellungen/ojones/Eigene
> Dateien/R/R-2.15.2/bin/i386/Rterm.exe"
>
> So maybe it's not a bug, but a behaviour of ess-directory-containing-R
> that is not well documented?
>
>
> Am 21.01.2013 19:07, schrieb Richard M. Heiberger:
>> ESS is not finding R by default because he did not install R into the
>> default location.
>> He installed into
>> C:/Dokumente und Einstellungen/username/Eigene Dateien"
>>
>> The default location is
>> (in English locales)
>> c:/Program Files/R/
>>
>> I think that will be
>> c:/Programme/R/
>> in German. R will put it in the right place as long as you don't
>> overrule the default.
>>
>>
>> Kasper's advice is based on accepting the default location when R is
>> installed.
>>
>> On Mon, Jan 21, 2013 at 12:43 PM, Kasper Daniel Hansen
>> <kasperdanielhansen at gmail.com
>> <mailto:kasperdanielhansen at gmail.com>> wrote:
>>
>> Oliver,
>>
>> What Rich and Rodney are trying to figure out, is why this does not
>> work per default. In general, you do not need to set a variable to
>> find R, ESS should find it automatically. There are exceptions of
>> course. So I think they would like you to remove what you have in
>> .emacs and then see what happens.
>>
>> Kasper
>>
>> On Mon, Jan 21, 2013 at 12:38 PM, Oliver Jones
>> <ojones at wiwi.uni-bielefeld.de <mailto:ojones at wiwi.uni-bielefeld.de>>
>> wrote:
>> > Ok,
>> >
>> > do I load ess-site via
>> > M-x load-file RET
>> > and then the file ess-site.el from
>> emacs-24.2\site-lisp\ess-12.09-2\lisp\?
>> >
>> > If so then I get still the same result that the path to R in my
>> variable
>> > ess-directory-containing-R is not recognized.
>> >
>> >
>> >
>> >
>> > Am 21.01.2013 18:19, schrieb Richard M. Heiberger:
>> >>
>> >> There is probably something in your .emacs or site-start.el that is
>> >> interfering.
>> >>
>> >>
>> >> Please start
>> >> emacs -Q
>> >> then load ess-site
>> >> then set ess-directory-containing-R
>> >> then start R
>> >>
>> >> Rich
>> >>
>> >> On Mon, Jan 21, 2013 at 11:48 AM, Oliver Jones
>> >> <ojones at wiwi.uni-bielefeld.de <mailto:ojones at wiwi.uni-bielefeld.de>
>> >> <mailto:ojones at wiwi.uni-bielefeld.de
>> <mailto:ojones at wiwi.uni-bielefeld.de>>> wrote:
>> >>
>> >> Hi everyone,
>> >>
>> >> I just found out how to tell ess where to look for R under
>> Windows XP.
>> >> Maybe other have similar problems and this helps...
>> >> Maybe I found a bug?
>> >>
>> >> Situation:
>> >> Windows XP; Emacs 24.2.1; ESS version 12.09-2; R-2.10.1 properly
>> >> installed and two more
>> >> recent versions of R in my folder "C:/Dokumente und
>> >> Einstellungen/username/Eigene Dateien"
>> >>
>> >> M-x customize-variable RET ess-directory-containing-R RET
>> >>
>> >> and setting it to "C:/Dokumente und Einstellungen/username/Eigene
>> >> Dateien" doesn't help,
>> >> i.e. ess always starts the old (but properly installed) R-2.10.1.
>> >>
>> >> One has to change the inferior-R-program-name, i.e.
>> >>
>> >> M-x customize-variable RET inferior-R-program-name RET
>> >>
>> >> and setting that one to "C:/Dokumente und
>> >> Einstellungen/username/Eigene Dateien".
>> >>
>> >> So for what do we need/use the variable
>> ess-directory-containing-R?
>> >>
>> >> Best
>> >> Oliver
>> >> --
>> >>
>> >>
>> ___________________________________________________________________________________
>> >>
>> >> 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
>> <tel:%2B49%20%280%29521%20106%204895>
>> <tel:%2B49%20%280%29521%20106%204895>
>> >> http://www.wiwi.uni-bielefeld.__de/oekonometrie.html
>> >> <http://www.wiwi.uni-bielefeld.de/oekonometrie.html>
>> >>
>> >> ________________________________________________
>> >> ESS-help at r-project.org <mailto:ESS-help at r-project.org>
>> <mailto:ESS-help at r-project.org
>> <mailto:ESS-help at r-project.org>> mailing list
>> >> https://stat.ethz.ch/mailman/__listinfo/ess-help
>> >> <https://stat.ethz.ch/mailman/listinfo/ess-help>
>> >>
>> >>
>> >
>> > --
>> >
>> _______________________________________________________________________________
>> >
>> > 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 <tel:%2B49%20%280%29521%20106%204895>
>> > http://www.wiwi.uni-bielefeld.de/oekonometrie.html
>> >
>> > ______________________________________________
>> > ESS-help at r-project.org <mailto:ESS-help at r-project.org> mailing list
>> > https://stat.ethz.ch/mailman/listinfo/ess-help
>>
>>
>
More information about the ESS-help
mailing list