Skip to contents

Authoring tutorials

Scaffold and run interactive tutorials.

create_tutorial()
Create a new learnr2 tutorial
run_tutorial()
Render and open a bundled tutorial
available_tutorials()
List tutorials bundled with learnr2 (or any installed package)

Quiz questions

learnr-style quiz questions, graded in the browser.

question()
Create a quiz question
answer()
Define an answer choice for a quiz question
quiz()
Group questions into a quiz

Collecting student work

Gather reader identifying information and let them turn work in.

student_info()
Collect student identifying information
download_answers_button()
Add a "download my answers" button
verify_submission()
Verify a downloaded submission's integrity hash

Quarto-live extension

Manage the bundled quarto-live Quarto extension.

add_live_extension()
Add the 'quarto-live' extension to a project
live_extension_dir()
Path to the bundled 'quarto-live' extension