https://github.com/mattblackwell/qsslearnr
learnr tutorial package for Quantitative Social Science
https://github.com/mattblackwell/qsslearnr
Last synced: 5 months ago
JSON representation
learnr tutorial package for Quantitative Social Science
- Host: GitHub
- URL: https://github.com/mattblackwell/qsslearnr
- Owner: mattblackwell
- Created: 2020-08-10T17:58:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-16T15:48:11.000Z (over 2 years ago)
- Last Synced: 2024-08-02T06:02:17.439Z (9 months ago)
- Language: HTML
- Size: 743 KB
- Stars: 97
- Watchers: 7
- Forks: 15
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - mattblackwell/qsslearnr - learnr tutorial package for Quantitative Social Science (HTML)
README
# qsslearnr: Interactive Tutorials for Quantitative Social Science
This package contains [`learnr`](https://rstudio.github.io/learnr/index.html) tutorials based on [*Quantitative Social Science: An Introduction*](http://qss.princeton.press/) by [Kosuke Imai](https://imai.fas.harvard.edu/) from Princeton University Press. To install this package, first install the [`qss`](https://github.com/kosukeimai/qss-package), `learnr` and [`gradethis`](https://github.com/rstudio-education/gradethis) packages:
``` r
remotes::install_github("kosukeimai/qss-package", build_vignettes = TRUE)
remotes::install_github("rstudio/learnr")
remotes::install_github("rstudio-education/gradethis")
remotes::install_github("mattblackwell/qsslearnr")
```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:
``` r
learnr::run_tutorial("00-intro", package = "qsslearnr")
```This should bring up a tutorial in your default web browser. You can see the full list of tutorials by running:
``` r
learnr::run_tutorial(package = "qsslearnr")
```The interface to the tutorials will look like this:

## Note on the Tidyverse version of the tutorials
Althought there are 11 baseR tutorials in total, only 7 (00 - 06) of such tutorials are in tidyverse since all of the rest (07 - 10) contain mostly conceptual questions.
## Submission Reports
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 with their names to a learning management system like Gradescope or Canvas.
## Other QSS tutorials
The material in these tutorials largely follows the original swirl course, [`qss-swirl`](https://github.com/kosukeimai/qss-swirl).