[英]Issues installing “forecast” package in R
I am trying to install the forecast package in R via: install.packages('forecast')
, nevertheless this is not working.我正在尝试通过以下方式在 R 中安装预测包:
install.packages('forecast')
,但这不起作用。
The result:结果:
There is a binary version available but the source version is later:
binary source needs_compilation
forecast 8.2 8.3 TRUE
Do you want to install from sources the package which needs compilation?
Not sure what to answer here, 'yes' or 'no'.不知道在这里回答什么,“是”或“否”。 If I answer 'no', the result is:
如果我回答“否”,结果是:
trying URL 'https://cran.rstudio.com/bin/macosx/mavericks/contrib/3.3/forecast_8.2.tgz'
Content type 'application/x-gzip' length 2204227 bytes (2.1 MB)
==================================================
downloaded 2.1 MB
tar: Failed to set default locale
The downloaded binary packages are in
/var/folders/qn/syx5z5tj4s5075wwmrrd3hbr0000gn/T//RtmpTBDqVs/downloaded_packages
If I type 'yes' some additional items are installed and I receive one error note:如果我输入“是”,则会安装一些其他项目,并且我收到一条错误提示:
Warning in install.packages :
installation of package 'forecast' had non-zero exit status
Unfortunately I cannot proceed with the necessary functions that this package provides.不幸的是,我无法继续使用此包提供的必要功能。 Thanks for any suggestions.
感谢您的任何建议。
我遇到了同样的问题,更改主 CRAN 存储库对我有用 Tools > Global Options > Packages
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.