R/configuration.R
Configuration.RdConfiguration class Encapsulates all configuration parameters for the package, with validation. The same object is used for all workflows, with workflow-specific validation methods.
stics_exePath to STICS executable (required)
usms_workspacePath to USMs workspace (required)
metadata_filePath to metadata file (required if run_simulations = TRUE)
eval_workspacePath to evaluation workspace (required)
output_dirPath to output directory for export workflow (required for export)
run_simulationsLogical. Whether to run simulations or just prepare the workspace.
parallelLogical. Whether to run workflow in parallel.
verboseInteger. Verbosity level (0 = silent, 1 = info, 2 = debug).
coresInteger or NA. Number of CPU cores to use for parallel processing (only if parallel = TRUE). NA means auto-detect.
percentageNumeric. Percentage of simulations to consider for export and plots (between 0 and 100).
speciesCharacter vector or NULL. If specified, only these species will be included in export and plots.
usmsCharacter vector or NULL. If specified, only these USMs will be included in export and plots.
var2excludeCharacter vector or NULL. If specified, these variables will be excluded from export and plots.
sim_rdsCharacter or NULL. Path to an .rds file containing
pre-computed simulation results. If supplied, bypasses the need to
run simulations (see validate_eval()). Independent of obs_rds.
obs_rdsCharacter or NULL. Path to an .rds file containing
observation data used as reference for evaluation, plots and balance
closure. Independent of sim_rds — has no effect on required fields.
ref_sim_rdsCharacter or NULL. Path to an .rds file containing reference simulation results used for evaluation and plots. Required for evaluation.
Configuration$new()Create a Configuration object. Values are validated against a declarative schema.
Configuration$new(...)Configuration$validate_eval()Validate configuration for evaluation workflow.
Note: if sim_rds is supplied, it bypasses the need to run
simulations (see check_metadata_file). obs_rds is independent
and has no effect on required fields. usms_workspace remains
required for eval regardless of sim_rds/obs_rds.
Configuration$print()Print the configuration, with fields grouped by theme (paths, execution, filtering, ...) rather than as a flat list. Makes it much easier to eyeball the current state of a large Configuration.