【发布时间】:2016-10-21 17:35:20
【问题描述】:
我正在尝试安装 R devtools,但 RStudio 找不到该库。我遇到了this SO post 和this github discussion,它们一起可能意味着这是一个 Cygwin 问题,但我尝试卸载 git(以及我的 Cygwin 副本)并重新安装 Rtools,但没有成功。有没有人有其他尝试的想法?
我的系统:
> install.packages("devtools")
> library(devtools)
> find_rtools(T)
Error: running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD config CC' had status 127
我的路径(来自 RStudio):
> Sys.getenv()['PATH']
PATH C:\Program
Files\R\R-3.3.0\bin\x64;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Git\cmd;C:\cygwin32;C:\Program Files\Git\mingw64\bin;C:\Program
Files\Git\usr\bin;C:\Users\king\Desktop\_REPOS\misc\stock_analysis\forex\oanda\ruby;C:\Users\king\.dnx\bin;C:\Program
Files\Microsoft DNX\Dnvm\;C:\Ruby22-x64\bin
【问题讨论】: