[R] Setting environment variables (installation problem)

From: Thomas Unternaehrer <uth_at_zhwin.ch>
Date: Wed 15 Jun 2005 - 20:08:39 EST

Dear All,

Is it possible under WinXP to set the R binary path (...\R\bin) as an environment variable during installation?
(rw2010.exe)

The problem is that I've written a program that needs to know the path of Rterm.exe during installation.
At the moment the user can't choose the R installation path
("/DIR={pf}\\R /SILENT").

If I would know where the user install R the InnoSetup part would be really simple:
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "PATH"; ValueData: "{olddata};{app}\R\bin"
(or something like that)

(R-FAQ for Windows)

The R-FAQ#2.5 tells me that I'm able to specify the path where R will be installed but nothing about the environment variable. And the R-FAQ#2.16 is not what I need.

Duncan Murdoch wrote
(http://tolstoy.newcastle.edu.au/R/help/04/07/1272.html) that it is not
recommended to edit the R.iss manually and it seems to me to hard to edit the makefiles for my problem.

An other possibility seems to be to read and edit the HKLM\Software\R-core\R\InstallPath registry entry, but is there no easier way to do that?

Thanks for any hints (and sorry for my english).

Thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 15 20:17:36 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:39 EST