I want to create a Moodle quiz with 300 random replications from 6 exercise templates using exams2moodle()
from R/exams. The 6 exercise templates depend on a data set that is randomly generated as a CSV file from a larger data base in the first exercise.
The command exams2pdf()
does just what I want but I want to reproduce what exams2pdf()
does with the exams2moodle()
command. However, this just generates a quiz with 300 questions of type 1, 300 of type 2, ..., and 300 of type 6. I don't know how to force Moodle to combine the first type 1 question in the same quiz along with the first type 2 question, the first type 3 question, ..., and the first type 6 question. Then, the exam created would be the same one that the command exams2pdf()
generates.