[ESS] Finding all versions of R on Windows when R not in default directory

Sparapani, Rodney rsparapa at mcw.edu
Sat Sep 8 14:57:12 CEST 2012

Hi Gang:

Well, this has been discussed before.  The consensus seemed to be look it up in
the registry.  See the following article for a batch file that you can run from
elisp to authoritatively find R:


From: ess-core-bounces at r-project.org [ess-core-bounces at r-project.org] on behalf of Richard M. Heiberger [rmh at temple.edu]
Sent: Friday, September 07, 2012 11:14 PM
To: S. McKay Curtis
Cc: ess-core; ess-help at r-project.org
Subject: Re: [ESS] Finding all versions of R on Windows when R not in default   directory


Here is a workaround for those who are not faint-of-heart in working with .el files.
If it works for you and others, we can put it in a future release of ESS.

In your example, select the second line and comment out the first.
I tested it on Windows 7 with ESS 12.04-4 using the first line and the third line.

On proper installation, the first three lines will become potential values for a new
customized variable, and the first line will be the default value.


On Fri, Sep 7, 2012 at 10:25 PM, S. McKay Curtis <s.mckay.curtis at gmail.com<mailto:s.mckay.curtis at gmail.com>> wrote:
Hi all,

I recently installed R in a Windows directory other than the default


rather than

"C:/Program Files/R/R-2.15.1"

to help Rcpp play nice on Windows.  Unfortunately, ESS cannot find any
versions of R on my system now.  My "exec-path" contains a path to the
"bin" folder of the new installation of R, and I even tried adding
two additional paths to the "exec-path" (the "bin/i386" and "bin/x64"), but
this did not seem to help.

Any ideas?


P.S. I'm using Vincent Goulet's fabulous windows Emacs bundle, if that's
useful information for anybody.

        [[alternative HTML version deleted]]

ESS-help at r-project.org<mailto:ESS-help at r-project.org> mailing list

More information about the ESS-help mailing list