我正在尝试安装rPython,但是我得到了关于scrdir安装的以下错误。scr文件(makevars.win)和configure.win文件具有相同的路径。我使用的路径是:
#!/bin/sh
echo PKG_LIBS=-LD:/Programs/Python27/libs -lpython27
echo PKG_CFLAGS=-I"D:/Programs/Python27/include"这就是我在R上看到的错误。
install("D:/Programs/R-3.4.2/library/rPython")
Installing rPython
"D:/Programs/R-3.4.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \
"D:/Programs/R-3.4.2/library/rPython" --library="D:/Programs/R-3.4.2/library" --install-tests
ERROR: cannot install to srcdir for package 'rPython'
* removing 'D:/Programs/R-3.4.2/library/rPython'
Error: Command failed (1)我使用的是windows 10机器64位。有什么建议吗?
发布于 2017-10-18 15:03:23
通过将"C:/Rtools“添加到计算机的"environment variables”中的变量路径中,我设法解决了这个问题。
https://stackoverflow.com/questions/46811146
复制相似问题