[R] R doesn't recognize R_HOME value

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Wed Jul 25 04:57:29 CEST 2012

You are asking us how your operating system works, but this list is about R.

The key thing you appear to not understand is that environment variables are local to each process, and default environment variables are received from the process that started any given process.

I ask you to go study this in a more appropriate place, and for our sanity in the meantime suggest that you set the environment variables in the Advanced area of the System control panel, and then log out and log in to make sure all your processes receive them.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

Kirk Fleming <kirkrfleming at hotmail.com> wrote:

>Windows 7 is where I'm seeing the problem.
>The root problem: while I have R_HOME legitimately specified within
>7, and issuing 'set R_HOME' from the command line returns exactly the
>I've specified, doing a Sys.getenv('R_HOME') from R returns a
>different path.
>I ask, "What would cause a Sys.getenv() call to return a different
>than the OS does?"
>View this message in context:
>Sent from the R help mailing list archive at Nabble.com.
>R-help at r-project.org mailing list
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list