Rstudio找不到devtools [英] Rstudio can't find devtools
本文介绍了Rstudio找不到devtools的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装R devtools,但是RStudio找不到该库.我遇到了这篇SO帖子和
I am trying to install R devtools, but RStudio can't find the library. I came across this SO post and this github discussion which together might mean it is a Cygwin issue, but I have tried uninstalling git (and therefore my Cygwin copy) and reinstalling Rtools with no luck. Does anyone have ideas about other things to try?
我的系统:
My system:
> 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中):
My path (from within 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
推荐答案
I ran in the same problems and the following instructions solved my problems. I am not sure any more, but I also think I had to set .libPaths() = "C:/R/R-3.2.2/library"
(On windows)
这篇关于Rstudio找不到devtools的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文