Ubuntu机器16.04中的汽车包装

时间:2018-01-26 21:58:01

标签: r ubuntu

我无法在Ubuntu VM 16.04中安装R中的汽车套件。

我的最后一次尝试是通过R的终端控制台

当我尝试通过R studio或使用devtools运行它时,结果相同

我收到以下错误:

> install.packages('car')
Installing package into ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘nloptr’, ‘lme4’, ‘pbkrtest’

trying URL 'https://ftp.cc.uoc.gr/mirrors/CRAN/src/contrib/nloptr_1.0.4.tar.gz'
Content type 'application/octet-stream' length 353957 bytes (345 KB)
==================================================
downloaded 345 KB

trying URL 'https://ftp.cc.uoc.gr/mirrors/CRAN/src/contrib/lme4_1.1-15.tar.gz'
Content type 'application/octet-stream' length 3610706 bytes (3.4 MB)
==================================================
downloaded 3.4 MB

trying URL 'https://ftp.cc.uoc.gr/mirrors/CRAN/src/contrib/pbkrtest_0.4-7.tar.gz'
Content type 'application/octet-stream' length 156406 bytes (152 KB)
==================================================
downloaded 152 KB

trying URL 'https://ftp.cc.uoc.gr/mirrors/CRAN/src/contrib/car_2.1-6.tar.gz'
Content type 'application/octet-stream' length 627349 bytes (612 KB)
==================================================
downloaded 612 KB

ERROR: failed to lock directory ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2’ for modifying
Try removing ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2/00LOCK-nloptr’
ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
* removing ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2/lme4’
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2/pbkrtest’
ERROR: dependency ‘pbkrtest’ is not available for package ‘car’
* removing ‘/home/stefan/R/x86_64-pc-linux-gnu-library/3.2/car’

The downloaded source packages are in
    ‘/tmp/RtmpXR2ZjI/downloaded_packages’
Warning messages:
1: In install.packages("car") :
  installation of package ‘nloptr’ had non-zero exit status
2: In install.packages("car") :
  installation of package ‘lme4’ had non-zero exit status
3: In install.packages("car") :
  installation of package ‘pbkrtest’ had non-zero exit status
4: In install.packages("car") :
  installation of package ‘car’ had non-zero exit status

0 个答案:

没有答案