codinglab
The goal of codinglab is to store learnr tutorials in a package for students to run on their local machines. These tutorials were developed to teach introductory programming concepts as part of a statistics course.
Installation
You can install the development version of codinglab from GitHub with:
# install.packages("devtools")
devtools::install_github("harris-coding-lab/codinglab")
Running Tutorials
To run a tutorial in this package, install the codinglab package, then
use the learnr function run_tutorial
to launch the interactive
tutorial in your browser:
library(codinglab)
library(learnr)
# Run the first tutorial
run_tutorial("basic-syntax", package = "codinglab")
The tutorials in order are:
basic-syntax
reading-files
if-statements
loops
functions
Replace the first argument of run_tutorial
with the appropriate
tutorial name to run it.