View source: R/question_compact.R
Custom version of learnr::question()
for compact exercises.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | etude_question(
text,
...,
type = c("auto", "single", "multiple", "learnr_radio", "learnr_checkbox",
"learnr_text", "learnr_radio_inline", "learnr_checkbox_inline"),
correct = "Correct!",
incorrect = "Incorrect",
try_again = incorrect,
message = NULL,
post_message = NULL,
loading = c("**Loading:** ", text, "<br/><br/><br/>"),
submit_button = "Submit Answer",
try_again_button = "Try Again",
allow_retry = FALSE,
random_answer_order = FALSE,
options = list()
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.