我正在尝试从命令行运行Rscript.exe
。它安装在:
D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64
。我已将此位置添加到我的路径中。
当我跑步时
Rscript --version
我得到以下内容:
'D:\Program' is not recognized as an internal or external command,
operable program or batch file.
RStudio的工作正常。似乎找不到除在路径名中没有空格的单独位置安装之外的解决方案。
编辑:
where R
:D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\R.exe
where rscript
:D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\Rscript.exe
set PATH
:
Path=C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;D:\Program Files\Python36\Scripts\;D:\Program Files\Python36\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;D:\Program Files\Git\cmd;D:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;D:\Program Files (x86)\Yarn\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;D:\Program Files\MySQL\MySQL Utilities 1.6\;D:\Program Files\CMake\bin;C:\Users\affan.shahid\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\affan.shahid\AppData\Roaming\npm;C:\Users\affan.shahid\AppData\Local\Yarn\bin;D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW