compilation_options: Define compilations options

View source: R/jsonparser.R

compilation_optionsR Documentation

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
)

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

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

Examples

## Not run: 

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)


## End(Not run)

alexrecuenco/TexExamRandomizer documentation built on Jan. 31, 2024, 9:29 p.m.