View source: R/exams2openolat.R
exams2openolat | R Documentation |
Unexported legacy interface to exams2openolat
with
slightly different default values as used at the Department of
Statistics, Uni Innsbruck. Instead it is recommended to use
exams2openolat
directly.
exams2openolat(
file,
n = 1L,
dir = ".",
name = "olattest",
maxattempts = 1,
cutvalue = 1000,
solutionswitch = FALSE,
qti = "2.1",
stitle = "Aufgabe",
ititle = "Frage",
adescription = "",
sdescription = "",
eval = list(partial = FALSE, negative = FALSE),
template = "qti21",
...
)
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 ZIP and RDS file. |
maxattempts |
integer. The maximum attempts for one question, may also
be set to |
cutvalue |
numeric. The cutvalue at which the exam is passed. |
solutionswitch |
logical. Should the question/item solutionswitch be enabled? |
qti |
character indicating whether QTI |
stitle, ititle, adescription, sdescription |
character. Descriptions for various titles/descriptions. Defaults to generic German titles. |
eval |
named list. Specifies the settings for the evaluation policy, see function
|
template |
character. The IMS QTI 2.1 template that should be used. In addition
to the default template this can be set to |
... |
arguments passed on to |
exams2openolat
is a convenience interface for
exams2openolat
with somewhat different defaults:
German titles/descriptions, partial credits disabled, solution switch turned off,
large cut value (so that the test cannot be passed), and with fancy
quotes turned off in verbatim R output. Finally, an RDS file is stored
as a by-product containing the xexams
list. This
enables extracting and displaying specific exercises from an online test in R.
A list of exams as generated by xexams
is
returned invisibly.
olat_eval olat_exercise
## 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 German OpenOlat exam in temporary directory
## using a few customization options
exams2openolat(myexam, n = 3, dir = mydir, maxattempts = 2)
dir(mydir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.