安装Rtools:路径中的空格错误

时间:2015-05-08 13:47:55

标签: r

我正在尝试安装Rtools但遇到错误:

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

我尝试从http://cran.r-project.org/bin/windows/Rtools/下载并从Rstudio项目中安装,都返回相同的错误。

我认识到这是因为路径“C:\ Program Files ...”中有一个空格,但考虑到我可以正常安装包,这会引起错误。

有谁知道如何修复此错误?

感谢。

1 个答案:

答案 0 :(得分:0)

通过创建名称中没有任何空格的单独文件夹来解决此问题。即

C:/Rprogramfiles/R...