Skip to content
Prev 30753 / 63424 Next

Error in R CMD INSTALL on Windows XP using Rtools28

cstrato wrote:
I think Brian was right, your PATH is not what is shown above.  (That 
doesn't include the Windows directories, for instance.)

Were you running Rcmd INSTALL from a shell?  Which shell?  What does the 
shell report as your PATH just before running it? 

On Windows, the PATH is handled in a fairly complicated way.  I believe 
this description is correct, but it may not apply to all Windows versions:

The thing you set from within the Control Panel only applies to the 
currently running copy of Explorer.  Other applications that are 
currently running (e.g. an existing CMD shell) do not have their path 
updated.

There are both system and user level PATH settings.  Explorer combines 
them by putting the system settings *first*. 

Within a CMD shell, you can override the PATH completely, just by 
setting it to a new set of directories.

So it looks as though your problem is that your are showing us the user 
settings for the PATH, but not the system settings, and the system 
settings are messing you up.

Duncan Murdoch