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/
If your tutorial contains broken code within exercises for users to fix,
the CRAN version of packrat
will not find all of your dependencies to install when the tutorial is
deployed. To deploy tutorials containing broken exercise code, install
the development version of packrat
. This version of packrat
is able
to find dependencies per R chunk, allowing for broken R chunks within
the tutorial file.
devtools::install_github("rstudio/packrat")
learnr
does not support IE11 and Edge.
- IE11 not receiving major updates, so I am not pursuing support for IE11.
- Edge is adopting
chromium.
Once updated, Edge should work out of the box with many more R
packages (including
learnr
) and websites.