Ross Boylan | 21 Jun 2012 02:54
Picon

Install experiences

I recently had Windows 7 installed on a computer, and then R 2.15 and 
emacs 24.1.  ESS 12,04-4 is now working, but I thought I'd mention a 
couple of rough spots.  My hope is that this report might lead to some 
improvements in the installation  experience and documentation.

I've installed and used ESS before on a number of linux and windows 
systems.  I think I've often used Vincent Goulet's packages for Windows, 
but since I already had emacs I didn't this time.

First, I tried using emacs' new package management system, but ESS 
wasn't in it.  You might consider using that distribution channel.

Second, when I went to download the file from 
http://ess.r-project.org/index.php?Section=download it was hard to find 
instructions.  The first paragraph says "To run ESS in Emacs you have to 
first download the compressed eLisp source files and install them 
according to the following instructions."  But there aren't really any 
instructions on the page.  Eventually I tried the link to the ESS manual 
at the bottom, although the description "Instructions on how to retrieve 
ESS in particular or how to work with Subversion in general can be found 
in the following documents:" was not too inviting.  First, it didn't say 
which was which (it's pretty easy to guess, but why add friction?  The 
git docs are clearly marked off); more importantly, my problem was not 
how to retrieve the code but how to install it.  After some searching 
around in the manual I found the relevant section, which is also in the 
README file at the top of the directory of the unpacked zip.

Finally, when I followed the instructions to install, I got to the 2nd 
step and was happy about the "you're done."  When I tried to start R it 
didn't work ("rterm not found").  Only then I realized I did not have an 
(Continue reading)

Richard M. Heiberger | 21 Jun 2012 05:35
Picon
Favicon

Re: Install experiences

ESS finds R automatically when it is put in the default location
c:/Program Files/R/

It is up to you to tell ESS where R is if it is anywhere else.
See the paragraph in ess-site.el that contains the line
;;(setq-default inferior-R-program-name "C:\\Program
Files\\R\\R-2.5.0\\bin\\Rterm.exe")
Installation instructions for Windows are very simple.
Put ESS somewhere and in site-start.el tell ESS where with a line like this

   (load-file "/PATH/TO/THIS/FILE/ess-site.el")

On Wed, Jun 20, 2012 at 8:54 PM, Ross Boylan <ross <at> biostat.ucsf.edu> wrote:

> I recently had Windows 7 installed on a computer, and then R 2.15 and
> emacs 24.1.  ESS 12,04-4 is now working, but I thought I'd mention a couple
> of rough spots.  My hope is that this report might lead to some
> improvements in the installation  experience and documentation.
>
> I've installed and used ESS before on a number of linux and windows
> systems.  I think I've often used Vincent Goulet's packages for Windows,
> but since I already had emacs I didn't this time.
>
> First, I tried using emacs' new package management system, but ESS wasn't
> in it.  You might consider using that distribution channel.
>
> Second, when I went to download the file from http://ess.r-project.org/**
> index.php?Section=download<http://ess.r-project.org/index.php?Section=download>it was hard
to find instructions.  The first paragraph says "To run ESS in
> Emacs you have to first download the compressed eLisp source files and
(Continue reading)

Vitalie Spinu | 21 Jun 2012 09:53
Picon
Gravatar

Re: Install experiences

  >> "Richard M. Heiberger" <rmh <at> temple.edu>
  >> on Wed, 20 Jun 2012 23:35:46 -0400 wrote:

  > ESS finds R automatically when it is put in the default location
  > c:/Program Files/R/

I wonder if anyone investigated of how to make ESS search for R in
windows registry. That would solve the issue once and forever.

Vitalie.

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Neuwirth Erich | 21 Jun 2012 10:23
Picon
Picon
Favicon

Re: Install experiences

http://stackoverflow.com/questions/7436530/can-i-read-the-windows-registry-from-within-elisp-how

has some options how to read the registry.
But one has to be careful on 64bit Windows.
There the stuff for 32bit programs in in another section.

On Jun 21, 2012, at 9:53 AM, Vitalie Spinu wrote:

>>> "Richard M. Heiberger" <rmh <at> temple.edu>
>>> on Wed, 20 Jun 2012 23:35:46 -0400 wrote:
> 
>> ESS finds R automatically when it is put in the default location
>> c:/Program Files/R/
> 
> I wonder if anyone investigated of how to make ESS search for R in
> windows registry. That would solve the issue once and forever.
> 
> Vitalie.
> 
> ______________________________________________
> 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

Rodney Sparapani | 21 Jun 2012 14:54
Picon
Gravatar

Re: Install experiences

On 06/21/2012 02:53 AM, Vitalie Spinu wrote:
>    >>  "Richard M. Heiberger"<rmh <at> temple.edu>
>    >>  on Wed, 20 Jun 2012 23:35:46 -0400 wrote:
>
>    >  ESS finds R automatically when it is put in the default location
>    >  c:/Program Files/R/
>
> I wonder if anyone investigated of how to make ESS search for R in
> windows registry. That would solve the issue once and forever.
>
> Vitalie.

Actually, Paul Johnson started the thread "Windows suggestion..."
where he looked at various alternatives to discovering Rterm from
the registry.  I tested the following on Windows XP (sorry, I don't
have access to a Windows 7 test machine).  I call it find-rterm.cmd
It's not elegant, but it seems to work.

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: use environment variable R_HOME if defined
:: else current folder if bin\rterm.exe exists
:: else most current R as determined by registry entry
:: else error
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

echo off

if not defined R_HOME if exist bin\rtrem.exe set R_HOME=%CD%

if not defined R_HOME for /f "tokens=2*" %%a in (
(Continue reading)

Neuwirth Erich | 21 Jun 2012 15:05
Picon
Picon
Favicon

Re: Install experiences

If possible avoid using R_HOME.
Thomas Baiers family of tools (statconnDCOM, rcom ...)
has all sorts of problems when R_HOME is set.
Please use the registry entry if possible.

On Jun 21, 2012, at 2:54 PM, Rodney Sparapani wrote:

> On 06/21/2012 02:53 AM, Vitalie Spinu wrote:
>>   >>  "Richard M. Heiberger"<rmh <at> temple.edu>
>>   >>  on Wed, 20 Jun 2012 23:35:46 -0400 wrote:
>> 
>>   >  ESS finds R automatically when it is put in the default location
>>   >  c:/Program Files/R/
>> 
>> I wonder if anyone investigated of how to make ESS search for R in
>> windows registry. That would solve the issue once and forever.
>> 
>> Vitalie.
> 
> Actually, Paul Johnson started the thread "Windows suggestion..."
> where he looked at various alternatives to discovering Rterm from
> the registry.  I tested the following on Windows XP (sorry, I don't
> have access to a Windows 7 test machine).  I call it find-rterm.cmd
> It's not elegant, but it seems to work.
> 
> :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
> :: use environment variable R_HOME if defined
> :: else current folder if bin\rterm.exe exists
> :: else most current R as determined by registry entry
> :: else error
(Continue reading)

Rodney Sparapani | 21 Jun 2012 16:04
Picon
Gravatar

Re: Install experiences

On 06/21/2012 08:05 AM, Neuwirth Erich wrote:
> If possible avoid using R_HOME.
> Thomas Baiers family of tools (statconnDCOM, rcom ...)
> has all sorts of problems when R_HOME is set.
> Please use the registry entry if possible.

Well, as the wags say: every one is a critic; patches welcome ;o)

Rodney

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Rodney Sparapani | 21 Jun 2012 20:14
Picon
Gravatar

Re: Install experiences

On 06/21/2012 09:04 AM, Rodney Sparapani wrote:
> Well, as the wags say: every one is a critic; patches welcome ;o)
>
> Rodney

Actually, R_HOME is easily avoided.  You can get at this rather easily
with elisp...
(shell-command-to-string "reg query hkcu\\software\\R-core\\R /v 
InstallPath | findstr InstallPath")

For me, that returns...
"    InstallPath	REG_SZ	C:\\Documents and Settings\\rsparapa.MCWCORP\\My 
Documents\\R\\R-2.14.2"

Rodney

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

David Scott | 21 Jun 2012 19:59
Picon
Picon
Favicon

Re: Install experiences


Sent from Samsung mobile

Neuwirth Erich <erich.neuwirth <at> univie.ac.at> wrote:

If possible avoid using R_HOME.
Thomas Baiers family of tools (statconnDCOM, rcom ...)
has all sorts of problems when R_HOME is set.
Please use the registry entry if possible.

On Jun 21, 2012, at 2:54 PM, Rodney Sparapani wrote:

> On 06/21/2012 02:53 AM, Vitalie Spinu wrote:
>>   >>  "Richard M. Heiberger"<rmh <at> temple.edu>
>>   >>  on Wed, 20 Jun 2012 23:35:46 -0400 wrote:
>>
>>   >  ESS finds R automatically when it is put in the default location
>>   >  c:/Program Files/R/
>>
>> I wonder if anyone investigated of how to make ESS search for R in
>> windows registry. That would solve the issue once and forever.
>>
>> Vitalie.
>
> Actually, Paul Johnson started the thread "Windows suggestion..."
> where he looked at various alternatives to discovering Rterm from
> the registry.  I tested the following on Windows XP (sorry, I don't
> have access to a Windows 7 test machine).  I call it find-rterm.cmd
> It's not elegant, but it seems to work.
>
(Continue reading)

Vincent Goulet | 21 Jun 2012 15:23
Picon

Re: Install experiences

The site-start.el file in my Windows distribution has a stub for this. 

Vincent Goulet
iPhone


Le 2012-06-20 à 23:36, "Richard M. Heiberger" <rmh <at> temple.edu> a écrit :

> ESS finds R automatically when it is put in the default location
> c:/Program Files/R/
> 
> It is up to you to tell ESS where R is if it is anywhere else.
> See the paragraph in ess-site.el that contains the line
> ;;(setq-default inferior-R-program-name "C:\\Program
> Files\\R\\R-2.5.0\\bin\\Rterm.exe")
> Installation instructions for Windows are very simple.
> Put ESS somewhere and in site-start.el tell ESS where with a line like this
> 
>   (load-file "/PATH/TO/THIS/FILE/ess-site.el")
> 
> 
> On Wed, Jun 20, 2012 at 8:54 PM, Ross Boylan <ross <at> biostat.ucsf.edu> wrote:
> 
>> I recently had Windows 7 installed on a computer, and then R 2.15 and
>> emacs 24.1.  ESS 12,04-4 is now working, but I thought I'd mention a couple
>> of rough spots.  My hope is that this report might lead to some
>> improvements in the installation  experience and documentation.
>> 
>> I've installed and used ESS before on a number of linux and windows
>> systems.  I think I've often used Vincent Goulet's packages for Windows,
(Continue reading)

Ross Boylan | 22 Jun 2012 00:12
Picon

Re: Install experiences

On 6/20/2012 8:35 PM, Richard M. Heiberger wrote:
> ESS finds R automatically when it is put in the default location
> c:/Program Files/R/
> It is up to you to tell ESS where R is if it is anywhere else.
> See the paragraph in ess-site.el that contains the line
> ;;(setq-default inferior-R-program-name "C:\\Program 
> Files\\R\\R-2.5.0\\bin\\Rterm.exe")
> Installation instructions for Windows are very simple.
> Put ESS somewhere and in site-start.el tell ESS where with a line like 
> this
>    (load-file "/PATH/TO/THIS/FILE/ess-site.el")
Hmm, I used (require 'ess-site) as advised in some docs (for recent emacs).

Anyway, it would be good to have the instructions on the download page, 
or at least somewhere it points to.  Probably with a note that you may 
need to tell it where your stat programs are.

Ross
>
>
> On Wed, Jun 20, 2012 at 8:54 PM, Ross Boylan <ross <at> biostat.ucsf.edu 
> <mailto:ross <at> biostat.ucsf.edu>> wrote:
>
>     I recently had Windows 7 installed on a computer, and then R 2.15
>     and emacs 24.1.  ESS 12,04-4 is now working, but I thought I'd
>     mention a couple of rough spots.  My hope is that this report
>     might lead to some improvements in the installation  experience
>     and documentation.
>
>     I've installed and used ESS before on a number of linux and
(Continue reading)

Rmh | 22 Jun 2012 00:56
Picon
Favicon

Re: Install experiences

the require works when the ess is installed in the right place (under emacs/site-lisp/, iirc).  the
load-file always works.

Sent from my iPhone

On Jun 21, 2012, at 18:12, Ross Boylan <ross <at> biostat.ucsf.edu> wrote:

> On 6/20/2012 8:35 PM, Richard M. Heiberger wrote:
>> 
>> ESS finds R automatically when it is put in the default location
>> c:/Program Files/R/
>>  
>> It is up to you to tell ESS where R is if it is anywhere else.
>> See the paragraph in ess-site.el that contains the line
>> ;;(setq-default inferior-R-program-name "C:\\Program Files\\R\\R-2.5.0\\bin\\Rterm.exe")
>> Installation instructions for Windows are very simple.
>> Put ESS somewhere and in site-start.el tell ESS where with a line like this
>>  
>>    (load-file "/PATH/TO/THIS/FILE/ess-site.el")
> Hmm, I used (require 'ess-site) as advised in some docs (for recent emacs).
> 
> Anyway, it would be good to have the instructions on the download page, or at least somewhere it points to. 
Probably with a note that you may need to tell it where your stat programs are.
> 
> Ross
>> 
>> 
>> On Wed, Jun 20, 2012 at 8:54 PM, Ross Boylan <ross <at> biostat.ucsf.edu> wrote:
>> I recently had Windows 7 installed on a computer, and then R 2.15 and emacs 24.1.  ESS 12,04-4 is now
working, but I thought I'd mention a couple of rough spots.  My hope is that this report might lead to some
(Continue reading)


Gmane