exams2canvas
is a convenience interface to exams2qti12
for generating QTI 1.2 with some small tweaks for Canvas
(https://www.instructure.com/canvas/). The supported exercise types at the
moment are num, schoice, mchoice, and string (but not cloze, yet). It is still under
development and may change in future versions. Please report any problems to the package
maintainer.
The Canvas-specific tweaks include:
Canvas necessitates a converter
that produces HTML plus MathML.
Thus, "pandoc-mathml"
(or equivalently "pandoc"
) can be used
or alternatively "ttm"
for exams with only R/LaTeX .Rnw exercises.
Supplementary files (images, data, ...) must be embedded without Base 64
encoding. Thus, base64 = FALSE
is hard-coded internally in exams2canvas
.
Multiple-choice exercises (referred to as multiple answer questions in Canvas)
are always evaluated (aka scored) with partial credits in Canvas. Therefore,
eval = list(partial = TRUE, negative = FALSE)
is hard-coded internally
in exams2canvas
. Negative points are not supported in Canvas.
The QTI XML file requires a few special tags which are enforced through
flavor = "canvas"
in exams2qti12
.
Technical note: For multiple-choice questions the QTI XML file produced by
exams2canvas
appears to encode an “all-or-nothing” scheme without partial
credits (i.e., partial = FALSE
). However, this is necessary for Canvas to recognize
the answer alternatives correctly. Despite this, Canvas always applies partial-credit
evaluation (as explained above).