2015-05-09 58 views
0

安裝packrat並運行後packrat::init()我收到以下錯誤,在我看來,這是嘗試訪問不再可用的網站,另外還有一些其他錯誤我不確定是由第一個生成的。R packrat init失敗:無法打開網址並找不到描述文件

環境: - OS X 10.10.3 - R的3.2.0版本 - packrat 0.4.3 - CRAN(不知道怎麼弄的版本爲這一個)

Fetching sources for packrat (0.4.3) ... OK (CRAN current) 
Snapshot written to '/Users/user/RProjects/Data_Specialization/r_programming/packrat/packrat.lock' 
Installing packrat (0.4.3) ... Error in download.file(url, destfile, method, mode = "wb", ...) : 
    cannot open URL 'http://cran.rstudio.com/src/contrib/packrat_0.4.3.tgz' 
In addition: Warning message: 
In download.file(url, destfile, method, mode = "wb", ...) : 
    cannot open: HTTP status was '404 Not Found' 
Warning in download.packages(pkgs, destdir = tmpd, available = available, : 
    download of package ‘packrat’ failed 
Error in hash(descFile) : 
    No DESCRIPTION file at path '/Users/user/RProjects/Data_Specialization/r_programming/packrat/lib/x86_64-apple-darwin13.4.0/3.2.0/packrat/DESCRIPTION'! 

從我讀過的這issue其值得注意的是我有Biocinstaller v1.18.1

回答

2

好的,所以它的版本兼容性問題。我們需要從GitHub像這樣安裝packrat:

if (!require("devtools")) install.packages("devtools") 
devtools::install_github("rstudio/packrat") 

然後packrat::init()按預期工作。

有關存儲庫site的更多信息。

請通過@kevinushey解決此問題issue

相關問題