This package contains learnr
for Gov 50 at Harvard University and is loosely based on Quantitative Social Science: An Introduction by Kosuke Imai from Princeton University Press. To install this package, first install its dependencies:
remotes::install_github("kosukeimai/qss-package", build_vignettes = TRUE)
remotes::install_github("rstudio/learnr")
remotes::install_github("rstudio-education/gradethis")
remotes::install_github("mattblackwell/gov50tutor")
Then you can start the tutorials in one of two ways. First, in RStudio 1.3 or later, you will find the QSS tutorials listed in the "Tutorial" tab in the top-right pane (by default). Find a tutorial and click "Run Tutorial" to get started. Second, you can run any tutorial from the R console by typing the following line:
learnr::run_tutorial("01-r-basics-data-viz", package = "gov50tutor")
This should bring up a tutorial in your default web browser.
At the end of each tutorial, students can download submission reports that describe what questions and exercises they attempted. Students can then upload these PDFs to a learning management system like Canvas or Gradescope.