exams2openolat {exams2openolat} | R Documentation |
Convenience interface to exams2openolat
from the exams
package with slightly changed defaults that also stores an RDS file with the
xexams object returned.
exams2openolat(file, n = 1L, dir = ".", name = "olattest", adescription = "", ...)
file |
character. A specification of a (list of) exercise files. |
n |
integer. The number of copies to be compiled from |
dir |
character. The default is either display on the screen or the current working directory. |
name |
character. A name prefix for resulting exercises and RDS file. |
adescription |
character with assessment description. |
... |
arguments passed on to |
A list of exams as generated by xexams
is
returned invisibly.
## load package and enforce par(ask = FALSE) library("exams2openolat") options(device.ask.default = FALSE) ## define an exams (= list of exercises) myexam <- list( "boxplots", c("tstat", "ttest", "confint"), c("regression", "anova"), c("scatterplot", "boxhist"), "relfreq" ) ## output directory mydir <- tempdir() ## generate .zip with OpenOlat exam in temporary directory ## using a few customization options exams2openolat(myexam, n = 3, dir = mydir, maxattempts = 3) dir(mydir)