我试图在运行R3.5.3的running中安装包"bfast“,但它抛出了依赖错误Warning in install.packages : dependency ‘quadprog’ is not available
我尝试使用install.packages("bfast")安装它,当我收到依赖错误时,我尝试像install.packages("quadprog")一样单独安装Warning in install.packages : package ‘quadprog’ is not available (for R version 3.5.3)依赖包,但随后它显示了这个错误,quadprog
以下是安装bfast包时的控制台状态。
install.packages("bfast")
Installing package into ‘/home/rehan/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
dependency ‘quadprog’ is not available
also installing the dependencies ‘tseries’, ‘forecast’
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.6.tar.gz'
Content type 'application/x-gzip' length 908972 bytes (887 KB)
==================================================
downloaded 887 KB
trying URL 'https://cloud.r-project.org/src/contrib/bfast_1.5.7.tar.gz'
Content type 'application/x-gzip' length 59697 bytes (58 KB)
==================================================
downloaded 58 KB
ERROR: dependency ‘quadprog’ is not available for package ‘tseries’
* removing ‘/home/rehan/R/x86_64-pc-linux-gnu-library/3.5/tseries’
Warning in install.packages :
installation of package ‘tseries’ had non-zero exit status
ERROR: dependency ‘tseries’ is not available for package ‘forecast’
* removing ‘/home/rehan/R/x86_64-pc-linux-gnu-library/3.5/forecast’
Warning in install.packages :
installation of package ‘forecast’ had non-zero exit status
ERROR: dependency ‘forecast’ is not available for package ‘bfast’
* removing ‘/home/rehan/R/x86_64-pc-linux-gnu-library/3.5/bfast’
Warning in install.packages :
installation of package ‘bfast’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpSfjWA6/downloaded_packages’如何正确安装包含所有依赖项的软件包?
发布于 2019-04-27 05:53:35
我也有同样的问题。我查看了R正在寻找的位置(https://cran.rstudio.com/bin/windows/contrib/3.5/),并从那里下载了'quadprog‘压缩文件。然后,在R或Rstudio中,从“包存档文件”中安装包。它对我有效,我希望它对你也有效。
发布于 2019-05-08 00:17:19
有一个新版本的Quadprog: 1.5-7可以安装在R 3.1:https://cran.r-project.org/web/packages/quadprog/index.html上,它为我解决了这个问题。
https://stackoverflow.com/questions/55872936
复制相似问题