- file
character. A specification of a (list of) exercise files.
- n
integer. The number of copies to be compiled from file.
- nsamp
integer. The number(s) of exercise files sampled from each
list element of file. Sampling without replacement is used
if possible. (Only if some element of nsamp is larger than
the length of the corresponding element in file, sampling
with replacement is used.)
- dir
character specifying the output directory (default:
current working directory). If only a single HTML file is produced
and no dir is explicitly specified, the file is displayed in the
browser rather than saved in dir.
- template
character. A specification of a HTML template.
- name
character. A name prefix for resulting exercises.
- quiet
logical. Should output be suppressed when calling
xweave?
- edir
character specifying the path of the directory (along with its
sub-directories) in which the files in file are stored
(see also xexams).
- tdir
character specifying a temporary directory, by default
this is chosen via tempfile. Note that this
is cleaned up (i.e., existing files are deleted) and only certain
temporary files are preserved.
- sdir
character specifying a directory for storing supplements, by
default this is chosen via tempfile.
- verbose
logical. Should information on progress of exam generation
be reported?
- rds
logical indicating whether the return list should also be
saved as an RDS data file.
- question
character or logical. Should the question be included in the HTML
output? If question is a character it will be used as a header for resulting questions.
Argument question may also be a vector that controls the output for the templates.
- solution
character or logical, see argument question.
- mathjax
logical. Should the JavaScript from https://www.MathJax.org/
be included for rendering mathematical formulas? By default mathjax = FALSE
unless converter = "pandoc-mathjax".
- resolution, width, height
numeric. Options for rendering PNG (or SVG)
graphics passed to xweave.
- svg
logical. Should graphics be rendered in SVG or PNG (default)?
- encoding
character, ignored. The encoding is always assumed to be UTF-8.
- envir
argument passed to xweave (which passes
it to knit).
- engine
argument passed to xweave indicating whether
"Sweave" (default) or "knitr" should be used for rendering Rnw exercises.
- base64
logical. Should supplementary files be embedded using Base 64 coding?
Argument base64 may also be a character vector of file suffixes that should be encoded, e.g.
base64 = c("png", "rda") will only encode PNG images and binary .rda files.
If set to NULL only image files will be encoded.
- converter, ...
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.
- seed
integer matrix or logical. Either NULL (default), logical, or a
matrix of random seeds for each possible exercise to be set prior to calling
driver@sweave. If NULL no random seeds are set. If a matrix,
the number of rows must be n and the number of columns must
correspond to unlist(file). If TRUE a suitable matrix of seeds
is sampled.
- exshuffle
logical or integer. If the exshuffle
argument is non-NULL it is used to overrule the exshuffle
tag from the file (e.g., exshuffle = FALSE can be used
to keep all available answers without permutation).
- options
list of options to be passed on to
pandoc_convert.