Pre-workshop instructions

1. Software

Download and install the latest versions of R, RStudio, and Quarto:

2. R Packages

Install the following packages by copying and pasting the following into the console in RStudio/Positron

# Ensures the package "pacman" is installed
install.packages("pacman")

pacman::p_load(
  # project and file management
  #############################
  here, # file paths relative to R project root folder
  rio, # import/export of many types of data
  openxlsx, # special functions for handling Excel workbooks

  # package install and management
  ################################
  remotes, # install from github

  # general data management
  #########################
  tidyverse, # includes many packages for tidy data wrangling and presentation

  # tables and statistics
  #######################
  janitor, # tables and data cleaning
  gtsummary, # making descriptive and statistical tables

  # plots - general
  #################
  # ggplot2,         # included in tidyverse
  cowplot, # combining plots
  RColorBrewer, # color scales
  gghighlight, # highlight a subset
  ggrepel, # smart labels
  ggExtra, # fancy plots
  tsibble, # working with time series
  viridis, # colorblind-friendly scales
  scales, # helper functions

  # routine reports
  #################
  rmarkdown, # produce PDFs, Word Documents, Powerpoints, and HTML files

  # tables for presentation
  #########################
  knitr, # R Markdown report generation and html tables
  flextable,

  # advanced statistic package
  dlnm # Distributed Lag Non-Linear Models
)

3. Resources

Here are some good readings you can check before the workshop: