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’
My professor was able to help me install the packages. I had to install the packages that were not installing initially and when prompted to consolidate files I responded "No".
macOS has a different compiler toolchain and often needs tweaking to a level most users aren't comfortable doing.
Whenever you attempt to install a package and are presented with the a source package is later option to install, choose Y, but if it doesn't work the first time, choose N. There are very few packages that you need to be up to date on the most recent release and within a few days to a week, a new binary will usually be available. This is seldom a problem on Linux because, to steal a phrase, it just works, but macOS has its own ways.