Need help installing the following packages
fpp
fpp2
forecasting
I'm using the below code:
install.packages(c('foreign', 'gmodels', 'lattice', 'ggplot2',
'RColorBrewer', 'psych', 'fpp', 'forecast', 'doBy'),
repos = "http://cran.r-project.org",
dependencies = c("Depends", "Suggests"))
I also downloaded the lasted Rstudio for Mac using the below link
macOS 10.13+
https://download1.rstudio.org/desktop/macos/RStudio-1.4.1103.dmg
Version 1.4.1103
Keep getting the following errors when running this code
library(fpp)
Error: package ‘forecast’ required by ‘fpp’ could not be found
library(fpp2)
Error in library(fpp2) : there is no package called ‘fpp2’
library(forecast)
Error in library(forecast) : there is no package called ‘forecast’