1
當我運行以下命令:install_github返回錯誤:zip文件無法打開
library(devtools)
install_github('roxygen2')
我得到以下錯誤:
與devtools 0.51:
Installing roxygen2 from hadley
Error in unzip(src, list = TRUE) :
zip file '/tmp/Rtmp2b44Ug/hadley-roxygen2.zip' cannot be opened
我安裝devtools的更新版本(0.6):install_github('devtools')
和錯誤更多信息ive,但類似:
> install_github('roxygen')
Installing github repo(s) roxygen/master from hadley
Installing roxygen.zip from https://github.com/hadley/roxygen/zipball
Error in expand(src, list = TRUE) :
zip file '/tmp/Rtmp2b44Ug/roxygen.zip' cannot be opened
In addition: Warning message:
In expand(src, exdir = tempdir()) : error 1 in extracting from zip file
我做錯了什麼?
> sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-linux-gnu (64-bit)
...
看起來你可能沒有權限寫'/ tmp目錄/ Rtmp2b44Ug' (即在'tempdir()') - 你可以檢查? – 2012-03-12 23:39:26
@ mathematical.coffee我想我有權限:運行R作爲root發生同樣的錯誤。 Rtmp2b44Ug已被刪除,但我的tmp目錄有'drwxrwxrwt'權限 – Abe 2012-03-12 23:45:22
嗯。這是一個很長的過程,但是你的系統上有'unzip'命令,對吧? 'Sys.which('unzip')'類似'/ usr/bin/unzip'? – 2012-03-12 23:48:58