You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consume cchs_missing_data.yaml: schema-driven fallback pattern and priority rules
The CCHS missing-data pattern schema was shipped but dormant. It now has
two thin consumers reading only its normative blocks:
- clean_variables()'s fallback pattern (used when a variable has no
worksheet metadata) is built from the schema's pattern families instead
of hardcoded values. Net behavior gain: the early-cycle decimal missing
codes (999.6-999.9), declared in the schema but absent from the old
hardcoded fallback, are now handled.
- load_priority_rules() resolves the not-applicable-over-missing priority
from the schema's declared hierarchy, replacing the built-in fallback
and its once-per-session 'YAML files not found' warning. The priority
decision is now read from a versioned, reviewable file.
The schema gains an applies_to: source_codes declaration (codes are in
the raw StatCan domain, not the harmonized domain) and a consumer note
marking variable_assignments as reference-only - variable_details.csv
remains the per-variable source of truth. Also adds .DS_Store to
.Rbuildignore so Finder droppings stay out of the built package.
Suite: 842 passing, 0 failures. Relates to CEP-017 Track 3.
0 commit comments