簡體   English   中英

R中的軟件包安裝版本錯誤

[英]Package installation version error in R

我試圖在Linux中下載並解壓縮源文件后安裝CRAN軟件包。 這些軟件包需要安裝一些依賴項,但是出現以下錯誤,為什么會這樣呢?

> install.packages("/home/sarah/lubridate", dependencies=TRUE)
Installing package into ‘/home/sarah/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Warning message:
package ‘/home/sarah/lubridate’ is not available (for R version 3.1.0)

PS我正在通過SSH連接到服務器,並且是一個sudoer用戶。 我沒有使用R CMD INSTALL,因為它還需要安裝一些依賴項。 謝謝

install.packages幫助文件:

pkgs:應從存儲庫中下載當前版本的軟件包名稱的字符向量。

  If 'repos = NULL', a character vector of file paths of '.tar.gz' files. These can be source archives or binary package archive files (as created by 'R CMD build --binary'). On a CRAN build of R for OS X these can be '.tgz' files containing binary package archives. Tilde-expansion will be done on the file paths. 

因此,如果要從庫的本地副本安裝,似乎需要repos = NULL 我不清楚您為什么不能以通常的方式使用遠程存儲庫。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM