Skip to content

rstudio/learnr

Folders and files

NameName
Last commit message
Last commit date
Sep 4, 2024
Sep 4, 2024
Nov 13, 2023
Nov 13, 2023
Sep 27, 2023
Sep 27, 2023
Nov 8, 2022
Sep 28, 2023
Aug 24, 2021
Sep 28, 2023
Oct 18, 2022
Sep 4, 2024
Feb 15, 2022
Feb 3, 2022
Feb 3, 2022
Sep 12, 2022
Sep 4, 2024
Feb 27, 2023
Apr 23, 2024
Sep 4, 2024
Oct 18, 2022
Nov 8, 2022
Feb 3, 2022
Sep 28, 2023
Jun 22, 2022
Sep 28, 2023
Mar 16, 2023

Repository files navigation

learnr

R build status CRAN status learnr downloads per month DOI
GitHub Discussions RStudio community RStudio community

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:

  1. Narrative, figures, illustrations, and equations.

  2. Code exercises (R code chunks that users can edit and execute directly).

  3. Quiz questions.

  4. Videos (supported services include YouTube and Vimeo).

  5. Interactive Shiny components.

Tutorials automatically preserve work done within them, so if a user works on a few exercises or questions and returns to the tutorial later they can pick up right where they left off.

Learn more about the learnr package and try example tutorials online at https://rstudio.github.io/learnr/.

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.