在Ubuntu 14.04.1 LTS上安装R(3.1.0)包插入符时出错

时间:2014-09-10 22:19:46

标签: r ubuntu install.packages r-caret

尝试在R 3.1.0(Ubuntu 14.04.01 LTS)上安装软件包“caret”并遇到构建错误。

> install.packages('caret')

[...]

* installing *source* package ‘BradleyTerry2’ ...
** package ‘BradleyTerry2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error : object ‘brglm’ is not exported by 'namespace:brglm'
ERROR: lazy loading failed for package ‘BradleyTerry2’
* removing ‘/home/br00t/R/x86_64-pc-linux-gnu-library/3.1/BradleyTerry2’
Warning in install.packages :
  installation of package ‘BradleyTerry2’ had non-zero exit status
ERROR: dependency ‘BradleyTerry2’ is not available for package ‘caret’
* removing ‘/home/br00t/R/x86_64-pc-linux-gnu-library/3.1/caret’
Warning in install.packages :
  installation of package ‘caret’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp7pWmvr/downloaded_packages’
> sessionInfo()
R version 3.1.0 (2014-04-10)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8    
 [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8    LC_PAPER=en_CA.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] sp_1.0-16

loaded via a namespace (and not attached):
[1] grid_3.1.0      lattice_0.20-29 tools_3.1.0    

无法在互联网上找到任何有用的信息。不确定这是BradleyTerry2包或brglm的问题吗?帮助?

谢谢,

br00t

2 个答案:

答案 0 :(得分:2)

如果您运行的是大于0.5-9的brglm软件包版本,请卸载并安装brglm软件包版本0.5-9

答案 1 :(得分:0)

我也可以通过安装依赖项来解决这个问题。您可能希望选择正确的答案。