首页 > 解决方案 > 在 R 中安装“汽车”包时遇到问题。

问题描述

我曾用它来尝试安装汽车包:

install.packages("car", dependencies=TRUE, INSTALL_opts = c('--no-lock'))

但收到此错误:

ERROR: dependency ‘openxlsx’ is not available for package ‘rio’ 
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/rio’
Warning in install.packages :
   installation of package ‘rio’ had non-zero exit status
ERROR: dependency ‘rio’ is not available for package ‘car’
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/car’
Warning in install.packages :
   installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘alr4’
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/alr4’
Warning in install.packages :
   installation of package ‘alr4’ had non-zero exit status

我尝试单独安装依赖项,但没有成功。任何帮助将不胜感激。谢谢。

标签: rlinuxubunturstudio

解决方案


推荐阅读