2016-04-21 63 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? –