Create a Canvas New Quiz based on a quiz Rmd file using library(examiner).
Source:R/rstudio.R
canvas_new_quiz.RdThis R markdown "output format" creates a Canvas New Quiz based on the currently active Rmd file.
The body of the quiz file becomes the "description" of the quiz,
and one question gets added to the Canvas New Quiz based on each question file
specified in the questions field in the YAML header.
To use this output format, specify output: examiner::canvas_new_quiz
at the top level of the quiz file's YAML header.
Value
Output format object created by rmarkdown::output_format()
Details
For compatibility with WISEflow "items" (sections), the questions field
in the YAML header of the quiz Rmd file can have either of two formats:
or
questions:
First section:
- question_one.Rmd
- question_two.Rmd
Second section:
- question_three.RmdIn the bottom example, the Canvas New Quiz will have the text "First section" and "Second section" as a text_only_question before their respective questions.