繁体   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