Skip to content

Could the Windows installer edit PATH?

5 messages · Chris Jackson, Brian Ripley, Thomas Lumley +1 more

#
I have just diligently upgraded my R installation for Windows XP Pro to
1.8.0.  As an ESS user and R package builder, part of this upgrade process
for me always involves editing the PATH environment variable by hand to
update the location of the R bin directory.

Would it be possible or desirable for the R for Windows
installer/uninstaller to optionally edit the PATH itself? (as, for example,
the Activestate Perl installer has an option to update the PATH with the
Perl bin directory).

Chris
#
Why do you need to edit PATH?  I never have the rw10xx/bin directory in my 
Desktop PATH.  I do set the PATH in a terminal window when working with R, 
but I do that via the shell startup options (.tcshrc in my case).

It is I believe possible to get the installer to do this, but it may well 
not be allowed: our students are not allowed to set it (denied by a 
Windows profile setting).
On Fri, 10 Oct 2003, Chris Jackson wrote:

            

  
    
#
Prof Brian Ripley <ripley@stats.ox.ac.uk> wrote:
Emacs needs to know the location of Rterm.exe to run ESS.  I had also been
checking, building and installing packages from the standard Windows command
shell.  Using a decent shell instead as you suggest would indeed be a nicer
way of working.
Fair enough.

Chris
#
On Fri, 10 Oct 2003, Chris Jackson wrote:

            
Yes, but it can be told.
  (setq inferior-R-program-name "/path/to/R/bin/Rterm")
in a .emacs file

	-thomas
#
On Fri, Oct 10, 2003 at 06:53:55AM -0700, Thomas Lumley wrote:
Yes, and Chris point is that (parts of) /path/to/R/bin/Rterm change with
every release, requiring a change.

I sort-of solved for Cygwin and Xemacs/Cygwin that by soft-linking from
/usr/local/bin/, but I'd still prefer if R could install into a constant
directory (as an option, say).

Dirk