我正在尝试通过: 在 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
不幸的是,我无法继续使用该软件包提供的必要功能。感谢您的任何建议。