安装rPython(scrdir)时出错

时间:2017-10-18 13:17:46

标签: r rpython

我正在尝试安装rPython但是我收到有关scrdir安装的以下错误。 scr文件(configure.win)以及#!/bin/sh echo PKG_LIBS=-LD:/Programs/Python27/libs -lpython27 echo PKG_CFLAGS=-I"D:/Programs/Python27/include" 文件具有相同的路径。 我使用的路径是:

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)

这是我在R上遇到的错误。

pkghelp.m

我使用的是Windows 10机器64位。有什么建议吗?

1 个答案:

答案 0 :(得分:1)

我设法通过将“C:/Rtools”添加到计算机“environment variables”中的变量Path来解决此问题。