Examples were calculated in R version 4.2.1 (2022-06-23 ucrt) with an effort to use the most recent versions of R packages.

The codes load silently only a few packages:

All other packages are named before the function as in forecast::ggAcf() (this code calls the function ggAcf() from the package forecast) or called immediately before the necessary function use:

m <- as_tsibble(Y) %>%
    model(ARIMA(Y ~ 1, ic = "bic"))

The R packages used in this book include (in alphabetic order):