Description Usage Arguments See Also Examples
View source: R/question_checkbox.R
Creates a checkbox group tutorial quiz question. The student may select one or more checkboxes before submitting their answer.
1 2 3 4 5 6 7 8 9 |
text |
Question or option text |
... |
answers and extra parameters passed onto |
correct |
For |
incorrect |
Text to print for an incorrect answer (defaults to "Incorrect")
when |
try_again |
Text to print for an incorrect answer (defaults to "Incorrect")
when |
allow_retry |
Allow retry for incorrect answers. Defaults to |
random_answer_order |
Display answers in a random order. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | question_checkbox(
"Select all the toppings that belong on a Margherita Pizza:",
answer("tomato", correct = TRUE),
answer("mozzarella", correct = TRUE),
answer("basil", correct = TRUE),
answer("extra virgin olive oil", correct = TRUE),
answer("pepperoni", message = "Great topping! ... just not on a Margherita Pizza"),
answer("onions"),
answer("bacon"),
answer("spinach"),
random_answer_order = TRUE,
allow_retry = TRUE,
try_again = "Be sure to select all four toppings!"
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.