[R包] ubuntu 18.04在安装R包时遇到问题(“预测”)

时间:2019-05-04 10:32:08

标签: r

ubuntu 18.04无法安装预测软件包。

R版本:

henry@henry-Z360-MFLGL:~$ R --version
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"

我不知道这是怎么回事:

> install.packages('forecast')
Installing package into ‘/home/henry/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning: dependency ‘quadprog’ is not available
also installing the dependency ‘tseries’

trying URL 'https://cloud.r-project.org/src/contrib/tseries_0.10-46.tar.gz'
Content type 'application/x-gzip' length 164471 bytes (160 KB)
==================================================
downloaded 160 KB

trying URL 'https://cloud.r-project.org/src/contrib/forecast_8.7.tar.gz'
Content type 'application/x-gzip' length 909190 bytes (887 KB)
==================================================
downloaded 887 KB

ERROR: dependency ‘quadprog’ is not available for package ‘tseries’
* removing ‘/home/henry/R/x86_64-pc-linux-gnu-library/3.4/tseries’
ERROR: dependency ‘tseries’ is not available for package ‘forecast’
* removing ‘/home/henry/R/x86_64-pc-linux-gnu-library/3.4/forecast’

The downloaded source packages are in
    ‘/tmp/RtmpLRXSdv/downloaded_packages’
Warning messages:
1: In install.packages("forecast") :
  installation of package ‘tseries’ had non-zero exit status
2: In install.packages("forecast") :
  installation of package ‘forecast’ had non-zero exit status

我尝试过 sudo -i R等,但对我没有任何帮助。

0 个答案:

没有答案