createStory: Compile A File With Perl and Ocaml, Converting To .Tex

Description Usage Arguments Value

Description

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.

Usage

1
createStory(filename, n = 1, exec = TRUE, outfileExt = ".tex")

Arguments

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.

Value

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.


ecology-rocks/grammaR documentation built on May 15, 2019, 7:58 p.m.