Rexam is a very powerful R package for exam sheets genration and correction.
The package is rich and its functions are highly customizable.
For the same reason its use might be confusing at first. This package is the synthesis of one year wokring with r-exams. moRexams
is built to facilitate users access to the rexam
functionalities, possibly lowering the entry cost.
morexams
wraps rexam
and mainly adds three features:
adds checks to avoid simple problems (duplicate students, missing sheets ...) which are difficult to debug in rexam
adds an init
function to initialize a working folder with a basic structure needed to use rexams
out of the box. The init
function generates a fully-working example to immediately start with rexam
.
* move the configuration from the function parameters to a configuration file, useful to store configurations and simplify the script writing.
Install devtools
and morexams
with the following commands:
install.packages("devtools")
library(devtools)
install_github("mpascucci/morexams")
Open R in an empty directiory which will contain your new exam and run:
library(morexams)
morexams_init()
This will setup the folder by copying the main R scripts, config and tutorial files.
|-Generated #generated exam sheets
|-Logo #an image for exam sheets header
|-Questions #exam questions
|-Scan #scanned exam sheets
|-Students #students list
|-Evaluation #exam results
exam_generation.R #R script for exams sheet generation
exam_correction.R #R script for auto exams correction
config.R #the exam configuration file
This procedure is the result of one semester trial-and-error experience. Watch out: most of the complexity (and possible problems) lie in the physical steps of the procedure (printing, explaining, collecting, scanning) more than in the software.
config.R
where you can specify the exam's properties (e.g. title, author, ...)exams_generation.R
Generated
folder for safety.Scan/qcm
and Scan/string
folders for multiple-choice and open questions respectively.exams_correction.R
. The evaluation is interactive and will ask to check in case of ambigiuity. Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 8 did not have 6 elements
this means that the optical reading failed and that line 8
in the Daten.txt file automatically generated has to be corrected manually.
Find this file in the nops_scan
zip file in the ./Scan/nops
folder generated by the correction process. You should unzip it, correct it and then update the zip file.
WARNING: Use a simple text editor to edit the Daten.txt file in order to preserve the leading zeros in the fields.
After the exam evaluation, copy the following folders for a backup: - Evaluation - Scan - Generation
This feature does not always work propery, therefore has been temporarely removed.
If you want to restore it these are the required steps to make ImageMagik work on Linux:
On linux install ImageMagik
modify /etc/ImageMagick-6/policy.xml
from <policy domain="coder" rights="none" pattern="PDF" />
to <policy domain="coder" rights="read|write" pattern="PDF" />
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.