Create a print file object, from fresh or an existing file.

gadgetprintfile(file_name, path, missingOkay = FALSE, recursive = TRUE)

Arguments

file_name

The name of the print file

path

The path to the gadget directory to read from

missingOkay

If TRUE, return an empty print file object if file does not exist.

recursive

If TRUE, read all connected files recursively

Value

A list of print components representing file

Examples

if (FALSE) {
path <- './cod-model'
# Read 'print' print file, creating it if it doesn't exist
gadgetprintfile('print', path, missingOkay = TRUE)  
}