Description Usage Arguments Value
This is the meaty function. It takes a filename, appends ".gram", then runs compile-grammar.pl over it. compile-grammar.pl MUST be in the same directory. Because I'm lazy. Then it'll run OCaml to execute the code and convert to .tex. I hope to convert this functionality completely to R to avoid this messy use of system commands.
1 | createStory(filename, n = 1, exec = TRUE, outfileExt = ".tex")
|
filename |
The name of the file, do not include the .gram extension. |
n |
The number of times you want to generate the grammar and OCaml from scratch. |
exec |
This is an error switch. Set to FALSE to see your system commands, if they are failing. |
Either this function is set to exec=TRUE and returns nothing, but writes a whole bunch of files, or is set to FALSE and returns the command strings to be executed later.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.