Create a Question Bank with realizations of a library(exams) Rmd file using Canvas LMS API.
Source:R/canvas.R
canvas_create_static_bank.Rd
Create a Question Bank with realizations of a library(exams) Rmd file using Canvas LMS API.
Usage
canvas_create_static_bank(
rmds,
title = "Static question bank",
abstain = NULL,
allow_dups = FALSE
)
Arguments
- rmds
Question Rmd files.
- title
Question bank title.
- abstain
Optional text for a zero-score answer alternative like "I wish to leave this question unanswered". This is relevant where wrong answers give a negative score, because Canvas offers no way to untick a radio button without selecting another.
- allow_dups
Allow duplicate answer alternatives (default FALSE). This catches problems where answer alternatives print identically after roundoff. You might occasionally want to enable duplicate options for comic effect: What's the magic word? 🔘 git 🔘 git 🔘 git
Examples
if (FALSE) { # \dontrun{
rmds <- system.file(c("multiple_choice_question.Rmd",
"xhtml-features.Rmd"),
package = "examiner",
mustWork = TRUE)
canvas_create_static_bank(rmds, "Test static question bank")
} # }