Check the formatting of all quizzes in a given directory.
check_quizzes(quiz_dir = "quizzes", write_report = TRUE, verbose = TRUE)
quiz_dir | A path to a directory full of quizzes that should all be checked with [ottrpal::check_all_quizzes]. |
---|---|
write_report | TRUE/FALSE save warning report to a CSV file? |
verbose | print diagnostic messages |
A list checks performed on each quiz
## Make a temporary quiz directory quiz_dir <- dirname(good_quiz_path()) ## Now check the quizzes in that directory all_quiz_results <- check_quizzes(quiz_dir = quiz_dir)#> #>#>#> Warning: Colon detected in question on lines: 7 in question starting with:It would be a shame ... in quiz: quiz_bad.md#>#>#>#> Warning: No correct answers provided for What if we don't put ... in quiz: quiz_bad.md#>#> Warning: No incorrect answer options provided for What if only give co ... in quiz: quiz_bad.md#> #>#>#>#>#>#> #>