Widgets

fitb()

Create a fill-in-the-blank question

mcq()

Create a multiple-choice question

torf()

Create a true-or-false question

longmcq()

Longer MCQs with Radio Buttons

hide()

Create button revealing hidden content

unhide()

End hidden HTML content

total_correct()

Display total correct

Learnr Syntax

quiz()

LearnR-style quiz

question()

LearnR-style question

answer()

LearnR-style answer

Helper Functions

webexercises_default()

Create default webexercises document

add_to_bookdown()

Add webexercises helper files to bookdown

style_widgets()

Change webexercises widget style

escape_regex()

Escape a string for regex

round2()

Round up from .5

strip_lzero()

Strip leading zero from numeric string