Description Usage Arguments Value Examples
Parse Quiz and Other Checking Functions
Check Quiz Information
1 2 3 4 5 6 7 8 9 10 11 | parse_quiz(x)
extract_quiz(x)
find_quiz_indices(x)
check_quiz_attributes(x, verbose = TRUE)
check_quiz_question_attributes(x, verbose = TRUE)
check_attributes(x, verbose = TRUE)
|
x |
The output from [leanbuild::parse_quiz] |
verbose |
print diagnostic messages |
A list of elements, including a 'data.frame' and metadata for questions
A logical
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | x = c('{quiz, id: quiz_00_filename}',
"### Lesson Name quiz",
"{choose-answers: 4}",
"? What do you think?",
"",
"C) The answer to this one",
"o) Not the answer",
"o) Not the answer either",
"C) Another correct answer",
"m) Mandatory different answer",
"",
"{/quiz}")
out = parse_quiz(x)
check_quiz_attributes(out)
x = c('{quiz, id: quiz_00_filename, choose-answers: 4}',
"### Lesson Name quiz",
"{choose-answers: 4, attempts: 25}",
"? What do you think?",
"C) The answer to this one",
"o) Not the answer",
"o) Not the answer either",
"C) Another correct answer",
"m) Mandatory different answer",
"{/quiz}")
out = parse_quiz(x)
check_quiz_attributes(out)
check_quiz_question_attributes(out)
x = c('{quiz, id: quiz_00_filename, choose-answers: 4}',
"### Lesson Name quiz",
"{choose-answers: 4, attempts: 25}",
"",
"? What do you think?",
"! The answer to this one",
"{/quiz}")
out = parse_quiz(x)
check_quiz_attributes(out)
check_quiz_question_attributes(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.