Read metadata/measurement_type.csv, refusing a corrupted registry
Source: R/registry.R
read_measurement_type.RdThe canonical measurement vocabulary, validated on the way in via
check_registry_na_strings() so a write_csv(na = "NA") round trip fails here
instead of silently reaching the release.
Value
A tibble of the registry, with empty cells as NA.
Details
The read is deliberately strict: na = "", so only genuinely empty cells
become NA. read_csv()'s default is na = c("", "NA"), which converts the
literal string "NA" back to NA — meaning a default read cannot see this
corruption, and no validator downstream of one ever could. DuckDB, which is not
so forgiving, is where the damage surfaces.