Automatic Generation of Exams in R for ‘Sakai’ used by universities.
Question templates in the form of the ‘exams
’ package are
transformed into Sakai XML format.
Dependencies:
libxml2
: found on popular Linux distros and in Rtools
by defaultpandoc
: gets installed by R
during
installationR
: a recent versionR
packages: installed automaticallyFrom CRAN
install.packages( "exams2sakai" )
or from github package repository:
library(devtools)
install_github( "jesusmmp/exams2sakai" )
exams2sakai
functionlibrary( exams2sakai )
<- list( "boxplots", "regression", "scatterplot", "relfreq" )
myexam
<- exams2sakai( myexam, n = 1,
ex1 verbose = TRUE,
dir = ".", points = c( 1 ) )
Results a qtisakai.zip
file in work directory …
: Swiss Capital
exname: schoice
extype: mchoice
extype: num # Only working with one solution
extype: TRUE # mcss
exsingle: FALSE # mca
exsingle: 0.1 # Tolerance for Numeric Response questions
extol: 0100001
exsolution: 5
exshuffle: TRUE # Randomize answers
exextra[randomize]: TRUE # Require Rationale exextra[hasRationale]