Initializes the evaluation workspace, runs global and species evaluations, exports results, displays a summary of results, and stops with an error if any test failed.

evaluate(config)

Arguments

config

A list containing the evaluation configuration. Must include at least the following element:

eval_workspace

Character. Path to the directory used as evaluation workspace. Created recursively if it does not already exist.

Value

Invisibly NULL. Called for its side effects: workspace creation, evaluation runs, and console reporting.

Details

The function proceeds in the following steps:

  1. Creates config$eval_workspace if it does not exist, and stops with an error if creation fails.

  2. Loads the USMS workspace via USMSWorkspace$new(config)$load().

  3. Instantiates and runs a GlobalEvaluation then a SpeciesEvaluation.

  4. Exports results to config$output_dir if defined.

  5. Prints their respective summaries.

  6. Displays a CLI report listing each evaluation as success (green ✔) or failed (red ✗).

  7. Stops with an error if at least one evaluation did not succeed.