Description Usage Arguments Details Value See Also Examples
Automatic generation of exams in QTI 2.1 (or 1.2) with some tweaks optimized for OpenOLAT.
1 2 |
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 the current working directory. |
name |
character. A name prefix for resulting exercises and ZIP file. |
qti |
character indicating whether QTI |
converter |
character passed on to |
table |
logical or character. Should a dedicated table class be used in the HTML for OpenOLAT? |
... |
arguments passed on to |
exams2openolat
is a convenience interface to exams2qti12
and exams2qti21
for generating either QTI 1.2 or 2.1
(default) output with some small tweaks for OpenOLAT. Specifically, the MathJax
output from pandoc is post-processed as expected by OpenOLAT.
exams2openolat
returns a list of exams as generated by xexams
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## load package and enforce par(ask = FALSE)
library("exams")
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 test in temporary directory
exams2openolat(myexam, n = 3, dir = mydir)
dir(mydir)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.