I do not have complete mastery over R, but I am trying to use the R/Exams package to create different exam versions and I am having trouble creating a cloze style question with multiple single choice questions within it. I am doing this because I have a figure that is needed to be analyzed before answering the 3 subsequent questions.
I thought the syntax might be something like this:
Question
==========
Use the following gel image to answer the following questions:
![]("Image.png")
Question 1
Question 2
Question 3
AnswerList
-----------
* Answer A
* Answer B
* Answer C
* Answer D
* Answer E
* Answer F
* Answer A
* Answer B
* Answer C
* Answer D
* Answer E
* Answer A
* Answer B
* Answer C
* Answer D
* Answer E
Meta-information
===============
extype: cloze
exclozetype: schoice|schoice|schoice
exsolution: 000010|00010|00010
exshuffle: TRUE
I haven't found anything online and I'm getting stuck. If anyone can help I would extremely appreciate it and thanks in advance!
Minimal example:
You are almost done, good job! You just need to tell the system where the dropdown interactions should be placed within the exercises. You can do so with
##ANSWER1##
etc. rather thanQuestion 1
. Thus, when you replace the three lineswith
then the exercise works!
More elaborate example:
A similar but somewhat more elaborate example that uses some more R code for randomization is shipped within the package and you can try it via
exams2canvas("vowels.Rmd")
. The source code of the file is: