[R] Environment variable PATH in Windows

Dennis Fisher fisher at plessthan.com
Fri Mar 4 15:16:53 CET 2011


Colleagues, 

I am trying to understand how R (2.12.1) obtains the PATH environment variable in Windows (7 or Vista).  Startup {base} directs one to:
	"R_ENVIRON" -- which equals "" in my systems
	R_HOME/etc/Renviron.site -- which does not exist
Next, it directs to:
	R_HOME/etc/Rprofile.site -- which also does not exist (the expected behavior in a "factory-fresh" installation)

I found the following files in R_HOME/etc:
	Makeconf
	Rcmd_environ
	Rconsole
	Rdevga
	respositories
	rgb.text
	Rprofile.txt
none of which refer to PATH (except Makeconf, which refers to JAVA path, but not to PATH itself)

Today's R-SIG-Mac Digest addresses a similar issue in OS X -- that R.app gets the values from /.MacOSX/environment.plist whereas a session started in Terminal uses .bashrc or /etc/profile.  What are the corresponding sources in Windows?

Thanks in advance.

Dennis

Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com



More information about the R-help mailing list