我正在尝试通过以下方式在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
不幸的是,我无法继续使用此程序包提供的必要功能。谢谢你的任何建议。
答案 0 :(得分:0)
我遇到了同样的问题,更改主要的CRAN存储库对我有用 工具>全局选项>程序包