Create a mode model from a C++ input file. This function will compile the mode support around your model and return an object that can be used to work with the model.

mode(filename, quiet = FALSE, workdir = NULL, skip_cache = FALSE)

Arguments

filename

The path to a single C++ file

quiet

Logical, indicating if compilation messages from pkgbuild should be displayed. Error messages will be displayed on compilation failure regardless of the value used.

workdir

Optional working directory to use. If NULL uses a temporary directory. By using a different directory of your choosing you can see the generated code.

skip_cache

Logical, indicating if the cache of previously compiled models should be skipped. If TRUE then your model will not be looked for in the cache, nor will it be added to the cache after compilation.

Value

A generator object based on your source files