Convert a csv file of questions into r/exams-style Rmd files.
Arguments
- x
Filepath to csv file.
- output_dir
Directory to write Rmd files to.
- ...
Additional arguments for
read.csv.
csv format
The csv file should have the following columns:
Question: the question text
Type: "schoice", "mchoice", or "string"
Image: the image file's name
Ans1: the answer text for the first answer
Ans2: the answer text for the second answer
Ans3: the answer text for the third answer
Ans4: the answer text for the fourth answer
Ans5: the answer text for the fifth answer
Correct: the correct answer number (1-5)
Category: the category of the question
SubCat: the subcategory of the question