On Wed, Jan 5, 2011 at 7:41 AM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > Editing the PATH is probably the best approach, but a lot of people get it > wrong because of misunderstanding how it works: > > - If you change PATH in one process the changes won't propagate anywhere > else, and will be lost as soon as you close that process. That could be a > cmd window, or an R session, or just about any other process that lets you > change environment variables. > > - If you want to make global changes to the PATH, you need to do it in the > control panel "System|Advanced|Environment variables" entries.
Note it is also possible to make global changes using the powershell by setting the user to "Machine". [Environment]::SetEnvironmentVariable("TestVariable", "Test value.", "Machine") Josh > > - Often it is good enough to use a more Unix-like approach, and only make > the change at startup of the cmd processor. You use the /k option when > starting cmd if you want to run something on startup. > > Duncan Murdoch ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.