This function parses a preamble of a document trying to read options handed to the package TexExamRandomizer to be used in compiling.
Arguments
- preamble
character vector identifying the preamble from which to pass the JSON readon through
Details
It find all %!TexExamRandomizer = {}
lines. It then uses the function fromJSON
to parse them, and it concatenates all those options.
If more than one option with the same name is given, it tries to concatenate those. However, it doesn't do that recursively, only if the names of the outer layer are the same... therefore, in nested structure you might end up with a list that have twice the same name. Keep in mind that in those cases, the default behaviour of R is to select the first one.
See also
Other jsoncompiler:
compilation_options()
,
jsonexamparser()
,
jsonhwparser()