Skip to content

Conversation

@elipousson
Copy link
Contributor

@elipousson elipousson commented Jul 22, 2025

Here are the changes focused on continued improvements to validation

  • Revise state/county checks to use new require_ and multiple parameters
  • Add set_tigris_year to reduce duplicate code + improve validation
  • Add year_suffix() helper function for readability
  • Add match_resolution() function
  • Add check_cb() function to validate cb argument
  • Replace calls to stop w/ cli_abort + message w/ cli_inform
  • Expand tests to cover new features and improve coverage

Other related clean-up changes include:

  • Remove .data operator (deprecated in tidyselect 1.2.0)
  • Minor style clean-up
  • Tidy DESCRIPTION
  • Remove uuid from Imports (it was unused)
  • Remove ggthemes from Suggests (replacing theme_map w/ theme_void
  • Remove tidycensus from Suggests to avoid a recursive dependency

- Revise state/county checks to use new `require_` and `multiple` parameters
- Add `set_tigris_year` to reduce duplicate code + improve validation
- Add `year_suffix()` helper function for readability
- Add `match_resolution()` function
- Replace calls to stop w/ cli_abort + message w/ cli_inform
- Remove .data operator (deprecated in tidyselect 1.2.0)
- Minor style clean-up
Unnecessary after prefixing fips_code
Reorganize test for enumeration units by function
Also swap email for Eli Pousson
`theme_void()` is equivalent to `ggthemes::theme_map()` so dropped ggthemes from examples
Issue due to removal of .data
Add test for new_england error
Simplify `check_tigris_year()` by removing function name from message and dropping "To request this feature, file an issue" suggestion

Add `not_year` argument to exclude years between min/max values
Remove duplicative check for year < 1990 (couldn't be triggered)

Remove call to cli_abort w/ no message (for years 2001-2009
Revert change to set_tigris_year message
Relocate match_resolution function to calls w/ cb = TRUE
Remove repetitive calls to local_options
Drop tidycensus from Suggests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant