Skip to contents

This function provides the compilation options that can be passed to the jsonexamparser

Usage

compilation_options(
  file = NULL,
  table = NULL,
  noutput = NULL,
  nquestions = NULL,
  seed = NULL,
  compile = NULL,
  xelatex = NULL,
  debug = NULL
)

Arguments

file

Input file name

table

Input table with student name and information

noutput

Number of *different* exams/homeworks produced

nquestions

Number of questions on each exam (Only on exams)

seed

Pseudorandom seed to be used (This allows the result to be deterministic)

compile

If TRUE, it tries to compile

xelatex

If TRUE, it uses `XeLaTeX`

debug

If TRUE, it doesn't remove auxiliary files generated by `LaTeX` when compiling

Value

A list of options to be passed to jsonexamparser, jsonhwparser.

See also

Examples

if (FALSE) {

file <-
    system.file(
        "extdata",
        "ExampleTexDocuments",
        "exam_testing_nquestions.tex", #Test exam that doesn't require a table
        package = "TexExamRandomizer")

temporalfile <- paste(tempfile(), ".tex", sep = "")

file.copy(file, temporalfile)
opt <- compilation_options(file = temporalfile)
jsonhwparser(opt)

}