Resources

NoteCommon Packages
if (!require("pacman")) install.packages("pacman")
pacman::p_load(tidyverse, 
               tsibble, fable,
               feasts, tsibbledata,
               fable.prophet,
               patchwork,
               lubridate, 
               rio 
)

Full list of libraries used throughout the lessons. If you are having issues with a function not getting called correctly, read through the comments and see if anything matches, if not pull packages out of the pacman and individually load them in through library(). Some of the most likely error causeing libraries are tagged in the comments with a note, so start with those unless you have a better idea of what package might be causing the issue.

pacman::p_load(
  # Interactive plots
  plotly, # Interactive visualizations, loaded before tidyverse so it overwrite dplyr::select(). Note: High conflict Potential
    
  # Core packages
  MASS, # MVNorm, loaded before tidyverse so it doesn't overwrite dplyr::select()
  tidyverse, # This will also load the dependencies; dplyr, readr, stringr, tibble, tidyr, purrr, forcats, gglot2, & lubridate
  
  # Data manipulation
  tsibble, # Tidyverse Temporal data
  tsibbledata, # Sample Tsibble datasets

  
  # Statistical modeling (GLS - Chpt 6-7) 
  nlme, # loaded before feasts to avoid ACF() conflict
  tidymodels, # for GLS, This will also load the dependencies; broom, rsample, dials, tune, infer, workflows, modeldata, workflowsets, parsnip, yardstick, & recipies. Note: High conflict Potential
  multilevelmod, # for GLS
  broom.mixed, # for GLS
  
  # TS modeling and forecasting
  fable,# Forecasting Models for Tidy Time Series, Note: High conflict Potential
  feasts, # collection of features, decomposition methods, statistical summaries and graphics for tsibble data, Loaded after nlme to avoid ACF() conflict
  fable.prophet, # Converts prophet (forecasting) package for fable workflow
  
  # Data exploration & visualization
  patchwork, # Multiple plot outputs
  ggthemes, # Plot styling
  see,  # okabeito color scheme
  ggokabeito,  # colorblind palette

  
  # Reporting & output
  kableExtra, # Create nice-looking tables from data.frames
  rio, # Easy import/export of data between R and other software
  gt, # Grammar of Tables for advanced table creation
  quarto, # For generating reports in LaTeX format

  # Additional packages
  tidyquant # Quantitative analysis tools using tidyverse principles, This will also load the dependencies; PerformanceAnalytics, xts, & zoo. Important Masks: ‘package:base’: as.Date, as.Date.numeric. Note: High conflict Potential
)
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.5:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/4.5/PACKAGES'
package 'cli' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'cli'
Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
C:\Users\DELL\AppData\Local\R\win-library\4.5\00LOCK\cli\libs\x64\cli.dll to
C:\Users\DELL\AppData\Local\R\win-library\4.5\cli\libs\x64\cli.dll: Permission
denied
Warning: restored 'cli'
package 'dplyr' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'dplyr'
Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
C:\Users\DELL\AppData\Local\R\win-library\4.5\00LOCK\dplyr\libs\x64\dplyr.dll
to C:\Users\DELL\AppData\Local\R\win-library\4.5\dplyr\libs\x64\dplyr.dll:
Permission denied
Warning: restored 'dplyr'
package 'purrr' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'purrr'
Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
C:\Users\DELL\AppData\Local\R\win-library\4.5\00LOCK\purrr\libs\x64\purrr.dll
to C:\Users\DELL\AppData\Local\R\win-library\4.5\purrr\libs\x64\purrr.dll:
Permission denied
Warning: restored 'purrr'
package 'rlang' successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package 'rlang'
Warning in file.copy(savedcopy, lib, recursive = TRUE): problem copying
C:\Users\DELL\AppData\Local\R\win-library\4.5\00LOCK\rlang\libs\x64\rlang.dll
to C:\Users\DELL\AppData\Local\R\win-library\4.5\rlang\libs\x64\rlang.dll:
Permission denied
Warning: restored 'rlang'
package 'tidymodels' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\DELL\AppData\Local\Temp\RtmpSciOBI\downloaded_packages
Warning in pacman::p_load(plotly, MASS, tidyverse, tsibble, tsibbledata, : Failed to install/load:
tidymodels