
Validate relationships against available datasources and fields
Source:R/validators.R
validate_relationships.Rd
Checks that relationship endpoints reference known datasource tables and that
the predicate fields appear somewhere in the workbook (calculated, raw, or
parameter fields), using a lenient token match (e.g., INT([GEOID])
→ GEOID
).
Value
A list with:
- ok
TRUE
if no issues;FALSE
otherwise.- issues
A named list of tibbles. Possible elements:
unknown_tables
: endpoints not found among known tables.unknown_fields
: predicate fields not found in the field pool.
Examples
if (FALSE) { # \dontrun{
res <- validate_relationships(parser)
if (!res$ok) print(res$issues)
} # }