Interactive Tutorials with R Markdown
Last updated Jul 3, 2026
736
Stars
241
Forks
152
Issues
+1
Stars/day
Attention Score
53
Language breakdown
R 78.1%
JavaScript 18.4%
CSS 2.1%
HTML 1.3%
Python 0.1%
โธ Files
click to expand
README
learnr 
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.
- Code exercises (R code chunks that users can edit and execute
- Quiz questions.
- Videos (supported services include YouTube and Vimeo).
- Interactive Shiny components.
Learn more about the learnr package and try example tutorials online at
Installation
Install the latest official learnr release from CRAN:
install.packages("learnr")
Or you can install the most recent version in-development from GitHub with the remotes package:
# install.packages("remotes") remotes::install_github("rstudio/learnr")
learnr works best with a recent version of RStudio (v1.0.136 or later) which includes tools for easily running and previewing tutorials.
๐ More in this category