I'm a newbie in R and as I'm following a script from another one, I'm in trouble for the fact I can't install (and recall) the "forecast" library. I've already read other posts but it seems no solutions have been successfully so far.
Some info:
I simply tried to install the packages "forecast" from usual server (Italy) and after my installation I finally got this message:
package ‘forecast’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\"myname"\AppData\Local\Temp\RtmpYjiY2w\downloaded_packages
However, when I insert: library(forecast)
it returns me this:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called ‘scales’
Errore: package or namespace load failed for ‘forecast’
Hope you can help me.
To install a custom package, click R Package menu on project list page. Then click Install tab, type in package name “forecast”, and click Install button.
The R package forecast provides methods and tools for displaying and analysing univariate time series forecasts including exponential smoothing via state space models and automatic ARIMA modelling.
Normally the problem is because of the curl. Try to install or update your current version of Curl. In linux Ubuntu use this:
sudo apt-get install libcurl4-openssl-dev libxml2-dev
I recommend using install.packages("package_name")
to install additional R packages. install.packages()
takes care of dependencies to other packages (like scales
in your case) and avoids such problems.
install.packages("forecast")
library(forecast)
To install package on Ubuntu follow this steps: update openssl (curl update) and libxml (Development files for the GNOME XML library),
sudo apt-get install libcurl4-openssl-dev libxml2-dev
then install packages with its dependencies:
install.packages('forecast', dependencies = TRUE)
this worked for me on ubuntu 16.04
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With