Skip to content

Conversation

@dshkol
Copy link
Collaborator

@dshkol dshkol commented Jan 18, 2026

Summary

  • Add retry_api_call() helper with exponential backoff for transient failures
  • Add format_bytes() helper for human-readable download size display
  • Add retry and max_retries parameters to get_census()
  • Report download size for data and geometry downloads when quiet=FALSE
  • Report number of geographic features being processed

New parameters for get_census()

  • retry (logical): If TRUE, automatically retry failed API requests with exponential backoff
  • max_retries (integer): Maximum retry attempts (default: 3)

Test plan

  • devtools::check() passes with 0 errors, 0 warnings
  • Documentation regenerated

🤖 Generated with Claude Code

- Add retry_api_call() helper with exponential backoff for transient failures
- Add format_bytes() helper for human-readable download size display
- Add retry and max_retries parameters to get_census()
- Report download size for data and geometry downloads when quiet=FALSE
- Report number of geographic features being processed
@mountainMath
Copy link
Owner

Could just wrap into a single parameter, with retry=0 indicating no retries?

@dshkol
Copy link
Collaborator Author

dshkol commented Jan 19, 2026

I'm fine either way. Main thing I like here is the progress status and giving context on the how much data is being requested and retrieved.

@mountainMath mountainMath changed the base branch from main to v0.5.11 January 19, 2026 05:11
@mountainMath mountainMath merged commit 2b94758 into v0.5.11 Jan 19, 2026
5 checks passed
@mountainMath mountainMath deleted the feature/progress-and-retry branch January 19, 2026 22:46
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.

3 participants