devtools找不到Rtools,但是ls和gcc在PATH上

时间:2017-07-06 14:45:05

标签: r r-devtools

Sys.which('gcc')
                                                                 gcc 
"C:\\Users\\[redacted]\\Documents\\aps\\Rtools\\mingw_32\\bin\\gcc.exe" 

Sys.which('ls')
                                                       ls 
"C:\\Users\\[redacted]\\Documents\\aps\\Rtools\\bin\\ls.exe" 

find_rtools(cache=FALSE,debug=TRUE)

Scanning path...
ls : C:\Users\[redacted]\Documents\aps\Rtools\bin\ls.exe 
"C:/Users/[redacted]/Documents/aps/rportnov/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD  \
  config CC 

Scanning registry...
WARNING: Rtools is required to build R packages, but is not currently installed.

Please download and install Rtools 3.4 from http://cran.r-project.org/bin/windows/Rtools/.

1 个答案:

答案 0 :(得分:0)

这是安装过程中生成的注册表中的问题,所以我重新安装它并且它有效。