[英]R: Can't install devtools package
I try to install the devtool package with the command 我尝试使用以下命令安装devtool软件包
install.packages('devtools')
I get the following output: 我得到以下输出:
ERROR: dependency âxml2â is not available for package ârversionsâ
* removing â/usr/local/lib/R/site-library/rversionsâ
ERROR: dependency ârversionsâ is not available for package âdevtoolsâ
* removing â/usr/local/lib/R/site-library/devtoolsâ
The downloaded source packages are in
â/tmp/RtmprD4FpZ/downloaded_packagesâ
Warning messages:
1: In install.packages("devtools") :
installation of package ârversionsâ had non-zero exit status
2: In install.packages("devtools") :
installation of package âdevtoolsâ had non-zero exit status
How can I add these missing dependencies? 如何添加这些缺少的依赖关系? Or what am I doing wrong?
还是我做错了什么?
My platform / version details: 我的平台/版本详细信息:
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
Look at the error messages (and I edit the UTF-8 away here): 查看错误消息(我在这里编辑UTF-8):
ERROR: dependency
xml2
is not available for packagerversions
错误:依赖性
xml2
不可用于程序包rversions
ERROR: dependency
rversions
is not available for packagedevtools
错误:依赖
rversions
不适用于软件包devtools
and check the respective CRAN pages for rversions and xml2 to see that the latter has 并检查相应的CRAN页面以获取rversions和xml2,以查看后者具有
Depends: R (≥ 3.1.0)
取决于:R(≥3.1.0)
whereas you have 而你有
R version 3.0.2 (2013-09-25)
R版本3.0.2(2013-09-25)
So in short: either upgrade R to a current versions, or stick with the (outdated) support packages that match your (outdated) R version. 简而言之:将R升级到当前版本,或坚持使用与您(过时)R版本匹配的(过时)支持包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.