This function builds a configuration list containing all parameters required to run simulations and evaluation workflows.
make_config(
stics_exe = NULL,
workspace = NULL,
metadata_file = NULL,
run_simulations = TRUE,
verbose = 1,
parallel = FALSE,
cores = NA,
reference_workspace = NULL,
percentage = 5,
eval_workspace = DEFAULT_WORKSPACE,
init_workspace = TRUE,
output_dir = NULL,
species = NULL,
usms = NULL,
var2exclude = NULL,
force = FALSE
)Character. Path to the STICS executable.
Character. Path to the working directory containing simulation inputs.
Character. Path to the metadata file describing simulations.
Logical. Whether to run simulations. Defaults to TRUE.
Integer. Verbosity level for logging. Defaults to 1.
Logical. Whether to enable parallel execution. Defaults to FALSE.
Integer or NA. Number of cores to use for parallel execution. If NA, the number of available cores may be used.
Character or NULL. Path to reference evaluation data. If NULL, reference-based analyses may be skipped.
Numeric. Threshold used for evaluation metrics (e.g., detecting deteriorated variables). Defaults to 5.
Character. Path to the evaluation workspace.
Defaults to DEFAULT_WORKSPACE.
Logical. Whether to initialize the evaluation workspace. Defaults to TRUE.
Character or NULL. Path to the output directory for exported files. Defaults to NULL.
Character vector or NULL. Optional list of species to evaluate. If NULL, all available species are evaluated. Defaults to NULL.
Character vector or NULL. Optional list of USMs to evaluate. If NULL, all available USMs are evaluated. Defaults to NULL.
Character vector or NULL. Optional list of variables to exclude from evaluation. If NULL, all available variables are evaluated. Defaults to NULL.
Logical. Whether to overwrite an existing non-empty evaluation workspace without prompting. Defaults to FALSE.
A named list containing the configuration parameters.
The resulting configuration object can be passed to downstream functions to ensure consistent parameter handling.
if (FALSE) { # \dontrun{
config <- make_config(
stics_exe = "/path/to/stics",
workspace = "workspace/",
metadata_file = "metadata.csv"
)
} # }