I just installed R on a new Microsoft Windows 7 computer and I am running in the following error when using command line:
"C:\Program Files\R\R-3.3.2\bin\Rscript.exe" --version
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Note that I have added above the quotes around the path with a space. And that I have added in the system path:
;C:\Program Files\R\R-3.3.2\bin\
Interestingly:
- if I just call this
Rscript.exe --version
it gives the same error, which is very weird: if it finds it, why can't it run it!?! The only explanation I can find is that the error occurs when looking for a dependency of Rscript.exe - I also noticed that this works
"C:\Program Files\R\R-3.3.3\bin\x64\Rscript.exe" --version
(both folders...\bin
and...\bin\x64
have an executable Rscript.exe)
Finally I confirm it is an R specific question as all other executables I tried in a subfolder of Program Files can be called through the same command line interface!