简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM