[R] R not recognized in command line
jwiley.psych at gmail.com
Wed Jan 5 16:59:26 CET 2011
On Wed, Jan 5, 2011 at 7:41 AM, Duncan Murdoch <murdoch.duncan at 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")
> - 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
More information about the R-help