shinyQuiz: Create a shiny quiz widget

Description Usage Arguments

Description

Create a shiny quiz widget

Usage

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")

Arguments

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


skranz/armd documentation built on Sept. 4, 2020, 12:22 p.m.