
Manage Operating Model Files
OM-files.RdA family of functions for listing, loading, and deleting saved Operating
Model (OM) files stored under the Objects/OM/ directory structure.
Arguments
- OMpath
character(1). Path to the directory containing OM subdirectories. Defaults to"Objects/OM".- type
character(1). Type of Operating Model. One of"SingleStock"(default) or"MultiStock". Determines the subdirectory used withinOMpath.logical(1). IfTRUE, prints the list of found OM files to the console. IfFALSE(default), returns the file paths invisibly without printing.- name
character(1). Name of the OM to load, without the.omextension. IfNULL(default) it loads all OMs returned byListOMFiles().
Value
ListOMFiles: character vector of full file paths. Returned invisibly whenprint = FALSE.LoadOM: theOMobject.DeleteOMs: a logical vector frombase::file.remove(), one element per file, indicating whether each deletion succeeded.