ParsePreambleForOptions | R Documentation |
This function parses a preamble of a document trying to read options handed to the package TexExamRandomizer to be used in compiling.
ParsePreambleForOptions(preamble)
preamble |
character vector identifying the preamble from which to pass the JSON readon through |
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.
Returns a list, that concatenates all the lists of options described on the file.
Other jsoncompiler:
compilation_options()
,
jsonexamparser()
,
jsonhwparser()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.