
Magic Harvest Extension
MagicHarvest.RdWraps an external script invocation that mutates a Biomass Harvest parameter file at each timestep.
References
LANDIS-II Magic Harvest v2 Extension User Guide https://github.com/Klemet/LANDIS-II-Magic-Harvest
Super class
LandisExtension -> MagicHarvest
Active bindings
HarvestExtensionParameterFileCharacter. Relative path to the wrapped harvest extension's parameter file.
ProcessToLaunchCharacter. Program name to execute.
ProcessArgumentsCharacter. Arguments passed to the process.
NoHarvestReInitializationCharacter
"true"or"false"(set via logical or"true"/"false"). The Magic Harvest extension parser only accepts boolean tokens here, notyes/no.
Methods
Inherited methods
MagicHarvest$new()
Usage
MagicHarvest$new(
path,
Timestep = NULL,
HarvestExtensionParameterFile = NULL,
ProcessToLaunch = NULL,
ProcessArguments = NULL,
NoHarvestReInitialization = FALSE
)Arguments
pathCharacter. Directory path.
TimestepInteger. Years between Magic Harvest invocations.
HarvestExtensionParameterFileCharacter. Relative path to the wrapped harvest extension's parameter file (e.g. a Biomass Harvest
.txt).ProcessToLaunchCharacter. Program name to execute (e.g.
"python","Rscript"); must be callable from the shell.ProcessArgumentsCharacter. Arguments passed to the process; may contain a literal
{timestep}placeholder. Use""or"{none}"for no arguments.NoHarvestReInitializationLogical (or
"true"/"false"). WhenTRUE, skips re-initialization of the wrapped harvest extension between timesteps. Optional; defaults toFALSE. LANDIS-II's Magic Harvest parser requires the literal tokentrueorfalsehere (notyes/no); seetruefalse().