olat_eval_export: Olat eval export

View source: R/olat_eval.R

olat_eval_exportR Documentation

Olat eval export

Description

Takes the results from read_olat_results and the information from the rds file with the individual questions/answers to generate a zip archive file with individual test results (html file). This zip file can be used to upload to OLAT.

Usage

olat_eval_export(
  results,
  xexam,
  file = "olat_eval.zip",
  html = "Testergebnisse.html",
  col = hcl(c(0, 0, 60, 120), c(70, 0, 70, 70), 90)
)

Arguments

results

data.frame, results from read_olat_results

xexam

list the object loaded from the rds file which contains the individual questions/answers. The length of the list corresponds to the number of randomized tests, each list element contains N elements (N = number of questions) with all the information required to generate the output.

file

character, name of the zip flie, the final archive file where to store the exported html files

html

character, name of the output files (html files)

col

character vector of length 4L with hex colors, default is hcl(c(0, 0, 60, 120), c(70, 0, 70, 70), 90)

Value

Return of the zip() call.


c403 documentation built on Oct. 20, 2023, 3:01 p.m.