2016-04-21 65 views
0

我试图安装mvabund的版本从github (3.11.8),因为cran (3.11.7)上的版本对汇总功能有问题。我按照说明使用devtools从Github安装R软件包,错误和警告

install.packages("devtools", dep=TRUE) 

library(devtools) 

install_github("mvabund", username="aliceyiwang") 

它安装Rtools构建软件包,然后产生以下错误消息和警告消息:

Error: Could not find build tools necessary to build mvabund In addition: Warning message: Username parameter is deprecated. Please use aliceyiwang/mvabund

运行install_github之前,我尝试安装Rtools代码但它仍然会重新安装Rtools。我不知道该怎么我使用Windows 10从这里

做,我有R v 3.2.5

+0

安装尝试使用install_github(“aliceyiwang/mvabund”)和Rtools应该在你的环境变量PATH – chinsoon12

回答

0

引述Rtools页:

We have found that the build process for R is quite sensitive to the choice of tools: please follow our instructions exactly, even to the choice of particular versions of the tools.

如果重新安装Rtools,该版本可能不你需要一个你的R版本。你的版本是最新的吗?其他

一种选择是尝试从GitHub的页面下载中心的包,并从本地目录与install

+0

我有rtools33和R版本3.2.5,所以我认为它们应该兼容,都是64位。我也尝试了chinsoon12的建议,但也尝试安装rtools。似乎正在发生的是; Rstudio尝试在下载完成后下载rtools,但在安装之前,会显示命令错误“无法找到构建mvabund所需的生成工具”,然后显示rtools,然后安装rtools。此时我尝试再次安装软件包,rtools再次开始下载。有没有办法让我将Rstudio指向已安装的rtools? –