简体   繁体   中英

Error installing R (3.1.0) package caret on Ubuntu 14.04.1 LTS

Trying to install package "caret" on R 3.1.0 (Ubuntu 14.04.01 LTS) and running into a build error.

> 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    

Wasn't able to find anything helpful on the interwebs. Not sure if this is an issue with the BradleyTerry2 package or brglm... help?

Thanks,

br00t

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

I was able to get over the issue too by installing the dependencies. You may want to select your answer as the right one.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM