'Canvas quiz imported through exams2canvas is missing solution materials/answer feedback
I exported the quiz generated by sample code of exams2canvas:
library("exams")
options(device.ask.default = FALSE)
set.seed(0)
## define an exams (= list of exercises)
myexam <- c(
"boxplots",
"tstat",
"ttest",
"regression",
"relfreq"
)
## output directory
dir.create(mydir <- tempfile())
## generate .zip with OpenOLAT test in temporary directory
exams2canvas(myexam, n = 3, dir = mydir)
dir(mydir)
I was able to import the zip file into Canvas as a quiz. However, when I check the quiz, the comment for each answer appears to be missing. I checked the xml file generated by exams2canvas() and the file does contain solutions and explanations for each question in the <solutionmaterial> block. For some reason they are not imported to Canvas.
Any pointers to help fix this issue will be very much appreciated!


Edit: Included screenshot of empty comments.
Solution 1:[1]
Prompted by a comment in an accompanying thread in the R/exams forum on R-Forge, I think I may have understood what the source of the misunderstanding is here.
For single- and multiple-choice questions in R/exams it is possible (but not necessary) to include feedback for each choice element. However, in exams2canvas() this is not show as element-wise feedback but as general feedback below the entire item. This has the advantage that all feedback is in one place, can easily be combined with other general feedback, and also the feedback to correct answers is included. Usually, this works well even if there is just a list of element-wise feedback. See the screenshot below for an example.
We have discussed potentially supporting the same feedback elements in different ways in Canvas. However, so far this is the only option. Further variations may be added in the future but are not planned at the moment.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Achim Zeileis |

