Learn R Programming

TexExamRandomizer (version 1.2.7)

compilation_options: Define compilations options

Description

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
)

Value

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

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

See Also

Other jsoncompiler: ParsePreambleForOptions(), jsonexamparser(), jsonhwparser()

Examples

Run this code
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)

}

Run the code above in your browser using DataLab