shinyQuiz: Create a shiny quiz widget

Description Usage Arguments

View source: R/quiz.r

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/RTutor2 documentation built on Oct. 7, 2017, 2:52 p.m.