esgdict_check() validates project parameter values against the local ESG
dictionary. It checks individual field values and cross-field relationships
represented in the dictionary's normalized query indices.
esgdict_check(
...,
project = NULL,
dict = NULL,
error = FALSE,
suggest = TRUE,
n_suggestions = 5L,
relationship = c("any", "all_pairs")
)ESG dictionary field values.
ESG project identifier. If NULL, the project is inferred
from dict when supplied, otherwise "CMIP6" is used.
Optional EsgDict object. If NULL, the package-level default
dictionary for project is used when available; otherwise the project
default dictionary is loaded from the persistent store manifest.
If TRUE, throw an error when invalid values or relationships
are found.
If TRUE, include near-match suggestions for invalid values.
Maximum number of suggestions to keep for each invalid value.
Relationship validation mode. "any" validates
ESGF-query style OR semantics. "all_pairs" requires every supplied
combination inside each relation index to exist.
An esgdict_check_result data.table::data.table().