Files
uscogdata/R
jared a34737f81c
R-CMD-check / check (push) Failing after 2m47s
refactor(suggestions): decompose .build_suggestions() into named helpers (#33)
Extract three functions from the ~140-line .build_suggestions()
orchestrator to comply with the 'functions under 50 lines' convention:

- .query_candidate_recipes(): candidate recipe lookup by category/subtype
  scope, includes #34's category_type filter (E/F/G -> 'expenditure',
  else 'revenue') and M/L self-exclusion
- .query_recipe_meta(): metadata lookup for labels and year spans
- .query_covered_years(): Path 1 gap-year coverage query via the recipe's
  own generic join; returns empty data frame when gap_years is empty

Kept inline per design: the for-loop that merges covered-years +
suppressed-components into suggestion objects, the M/L-exclusion comment
block as call-site rationale, and .attach_ig_counterparts() at the end.

All 1078 tests pass (2 skipped live-corpus).
2026-09-09 10:35:48 -04:00
..
2026-04-24 11:17:46 -04:00