growR_run_loop {growR} | R Documentation |
Run growR simulations
Description
Start the loop over runs specified in the config file.
Usage
growR_run_loop(modvege_environments, output_dir = "", independent = TRUE)
Arguments
modvege_environments |
A list of ModvegeEnvironment instances. |
output_dir |
string; name of directory to which output files are to
be written. If |
independent |
boolean; If |
Details
By default, returns an empty list but writes output to the output files
as specified in the site_name and run_name fields of the supplied
ModvegeEnvironment instances. Change this behaviour through the
write_files
and store_results
arguments.
Value
A list of the format [[run]][[year]]
containing clones of
the ModvegeSite instances that were run. Also write to files, if
output_dir is nonempty.
Examples
env1 = create_example_environment(site = "posieux")
env2 = create_example_environment(site = "sorens")
growR_run_loop(c(env1, env2), output_dir = "")