The learnr package makes it easy to turn any R Markdown document into an interactive tutorial. Tutorials consist of content along with interactive components for checking and reinforcing understanding. Tutorials can include any or all of the following:
-
Narrative, figures, illustrations, and equations.
-
Videos (supported services include YouTube and Vimeo).
-
Code exercises (R code chunks that users can edit and execute directly).
-
Quiz questions.
-
Interactive Shiny components.
You can find documentation on using the learnr package here: https://rstudio.github.com/learnr/