Interface for generating exams in TCExam format.
exams2tcexam(file, n = 1L, nsamp = NULL, dir = ".",
name = NULL, quiet = TRUE, edir = NULL, tdir = NULL, sdir = NULL, verbose = FALSE,
resolution = 100, width = 4, height = 4, svg = FALSE, encoding = "", points = NULL,
modulename = name, subjectname = name, subjectdescription = NULL, timer = 0,
fullscreen = FALSE, inlineanswers = FALSE, autonext = FALSE, shuffle = FALSE,
lang = "en", date = Sys.time(), zip = FALSE, converter = NULL, …)
character. A specification of a (list of) exercise files.
integer. The number of copies to be compiled from file
.
arguments passed to xexams
.
character specifying the output directory path. The default is the current working directory.
character. A name prefix for resulting XML file.
arguments passed to xweave
.
numeric. Number of points for the questions.
character. Module name.
character. Subject name.
character. Subject description.
numeric. Number of seconds for each question.
logical. Should the question be shown in full-screen mode?
logical. Should the question list be presented inline?
logical. Automatically advance to the next item?
logical. Should the question list of schoice/mchoice answers be shuffled (or kept fixed)?
character. Two-letter indicator of the language.
character or "Date"
object specifying the date of the exam.
logical. Should the resulting XML file be zipped?
arguments passed on to make_exercise_transform_html
.
The default for converter
is set to "ttm"
unless there are Rmd
exercises in file
where "pandoc"
is used.
A list of exams as generated by xexams
is
returned invisibly.
exams2tcexam
generates XML exams that can be imported into the TCExam software
of Asuni (2012). Currently, the subset of HTML(-like) commands that is supported in
TCExam is rather limited, e.g., tables and figures cannot be directly included.
Asuni (2012). TCExam: Computer-Based Assessment Software. http://tcexam.org/.
# NOT RUN {
## load package and enforce par(ask = FALSE)
library("exams")
options(device.ask.default = FALSE)
# }
# NOT RUN {
## exams2tcexam creates a single XML file
exams2tcexam("tstat2", n = 2)
# }
Run the code above in your browser using DataLab