R/question.R
quiz.Rd
Group questions into a quiz
quiz(..., caption = "Quiz")
One or more question() objects.
question()
Heading shown above the questions.
A learnr2_quiz object, printed as a set of interactive widgets.
learnr2_quiz
quiz( caption = "Arithmetic", question( "What is 2 + 2?", answer("4", correct = TRUE), answer("22") ) )