# [R] Setting environment variables (installation problem)

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

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