ECICourse::upload_images_to_canvas()
knitr::opts_chunk$set(
  echo = TRUE,
  message = TRUE,
  collapse = TRUE
)

Perform the following steps to ensure you have the necessary R packages for this course installed.

Step 1

Open RStudio

Step 2

Ensure these packages are installed, and install them if not. Copy and paste the code below into the R console:

if (!require("tidyverse")) {
  install.packages("tidyverse")
  library("tidyverse")
}
if (!require("coin")) {
  install.packages("coin")
  library("coin")
}
if (!require("DeclareDesign")) {
  install.packages("DeclareDesign")
  library("DeclareDesign")
}
if (!require("dagitty")) {
  install.packages("dagitty")
  library("dagitty")
}
if (!require("Matching")) {
  install.packages("Matching")
  library("Matching")
}
if (!require("AER")) {
  install.packages("AER")
  library("AER")
}

Step 3

Install the ECICourse package. Copy and paste the code below into the R console:

if (!require("remotes")) {
    install.packages("remotes")
}
if (!require("ECICourse")) {
    remotes::install_github("jasonmtroos/ECICourse")
    library("ECICourse")
}

Note that this package changes every year. If you are repeating this course and previously installed the course package, you must re-install it now.

Later in the course

I might need to update the ECICourse package during the course. If that happens, I will create an announcement asking you to re-install the package. To re-install the package, you will need to run the following code:

unloadNamespace('ECICourse')
remotes::install_github("jasonmtroos/ECICourse")


jasonmtroos/ECICourse documentation built on Sept. 8, 2023, 9:18 p.m.