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 )
myexam <- list( "boxplots", "regression", "scatterplot", "relfreq" )
ex1 <- exams2sakai( myexam, n = 1,
verbose = TRUE,
dir = ".", points = c( 1 ) )Results a qtisakai.zip file in work directory …
exname: Swiss Capital
extype: schoice
extype: mchoice
extype: num # Only working with one solution
exsingle: TRUE # mcss
exsingle: FALSE # mca
extol: 0.1 # Tolerance for Numeric Response questions
exsolution: 0100001
exshuffle: 5
exextra[randomize]: TRUE # Randomize answers
exextra[hasRationale]: TRUE # Require Rationale