![](/img/trans.png)
[英]Installing R `forecast` package on a Linux Cluster: compiler issues?
[英]Issues installing “forecast” package in R
我正在尝试通过以下方式在 R 中安装预测包: install.packages('forecast')
,但这不起作用。
结果:
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?
不知道在这里回答什么,“是”或“否”。 如果我回答“否”,结果是:
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
如果我输入“是”,则会安装一些其他项目,并且我收到一条错误提示:
Warning in install.packages :
installation of package 'forecast' had non-zero exit status
不幸的是,我无法继续使用此包提供的必要功能。 感谢您的任何建议。
我遇到了同样的问题,更改主 CRAN 存储库对我有用 Tools > Global Options > Packages
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.