exams2openolat {exams2openolat}R Documentation

Convenience Exams Interface for OpenOlat

Description

Convenience interface to exams2openolat from the exams package with slightly changed defaults that also stores an RDS file with the xexams object returned.

Usage

  exams2openolat(file, n = 1L, dir = ".", name = "olattest", adescription = "", ...)

Arguments

file

character. A specification of a (list of) exercise files.

n

integer. The number of copies to be compiled from file.

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 exams2openolat.

Value

A list of exams as generated by xexams is returned invisibly.

Examples

## 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)

[Package exams2openolat version 0.1-1 Index]