Reject sentinel strings that should have been empty cells
Source:R/registry.R
check_registry_na_strings.RdGuards a metadata registry against the write_csv(na = "NA") round-trip
described in R/registry.R. Errors listing the offending columns and rows
rather than returning quietly, because the whole failure mode is silence.
Usage
check_registry_na_strings(
df,
path = NULL,
sentinels = c("NA", "NaN", "NULL", "N/A", "na"),
cols = NULL
)Examples
if (FALSE) { # \dontrun{
check_registry_na_strings(readr::read_csv("metadata/measurement_type.csv"))
} # }