Create a shiny quiz widget
1 2 3 | shinyQuiz(id = paste0("quiz_", sample.int(1e+11, 1)), qu = NULL, yaml,
quiz.handler = NULL, add.handler = TRUE, single.check.btn = TRUE,
defaults = quizDefaults(lang = lang), lang = "en")
|
id |
the id of the quiz |
qu |
a list that contains the quiz fields as would have been parsed by read.yaml from package YamlObjects |
yaml |
alternatively to qu, is yaml a string that specifies the quiz |
quiz.handler |
a function that will be called if the quiz is checked. The boolean argument solved is TRUE if the quiz was solved and otherwise FALSE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.