Complete Tutorials
These tutorials were designed to showcase the features of the learnr package — and to teach learners how to use R! Try working through these tutorials to get a sense of the look and feel of a learnr tutorial. Then check out the source code to see how these tutorials were made!
Demo Tutorials
There’s a lot that learnr can do. These tutorials showcase specific learnr features or show you some possibilities that build on other packages designed to work with R Markdown and learnr.
A brief introduction to the types of interactive questions you can use in a learnr tutorial with the learnr::question()
and learnr::quiz()
functions.
learnr tutorials can even be used in slides! This example tutorial is a short presentation that showcases an interactive exercise that produces interactive visualizations with htmlwidgets.
The sortable package allows you to create custom HTML widgets with drag-and-drop capabilities that you can even use in learnr tutorials. This tutorial shows you what's possible with sortable and how to add drag-and-drop questions to your tutorials.
Community Showcase
learnr’s community has built some excellent tutorials and resources for learning data science and programming. Here are just a few highlights. (Please suggest your favorite learnr resources.)
The Department of Statistical Sciences (DoSS) toolkit is a free series of open source online modules written by undergraduates, that their fellow students and the public can use to learn the essentials of R.
Learn tidymodels in the browser or locally in your RStudio IDE!
This package contains learnr tutorials based on Quantitative Social Science: An Introduction by Kosuke Imai from Princeton University Press.
RTLedu contains learnr tutorials to accompany the RTL R package by @risktoollib.