compilation_options | R Documentation |
This function provides the compilation options that can be passed to the jsonexamparser
compilation_options(
file = NULL,
table = NULL,
noutput = NULL,
nquestions = NULL,
seed = NULL,
compile = NULL,
xelatex = NULL,
debug = NULL
)
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 |
A list of options to be passed to jsonexamparser
, jsonhwparser
.
Other jsoncompiler:
ParsePreambleForOptions()
,
jsonexamparser()
,
jsonhwparser()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.