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
I have already submitted an issue to discuss my idea with the maintainer.
Related GitHub issues and pull requests
Ref: #
Summary
Please explain the purpose and scope of your contribution.
Summary by CodeRabbit
Bug Fixes
Improved error reporting when file reading operations fail, now displaying file path and index information alongside error messages for easier troubleshooting.
Chores
Enhanced data quality filtering logic in lookup processes.
Updated test configurations and debugging utilities.
Reviewing files that changed from the base of the PR and between e470950 and 38bd956.
📒 Files selected for processing (3)
R/create_lkups.R
R/fgt_cumsum.R
inst/TMP/TMP_data_testing.R
📝 Walkthrough
Walkthrough
Three files are modified: create_lkups() applies additional filtering to exclude rows with invalid reporting_pop values; load_list_refy() adds error handling around file reads with detailed error reporting; and test code parameters and debug calls are updated for consistency.
Changes
Cohort / File(s)
Summary
Data Filtering Enhancement R/create_lkups.R
Added filtering step to exclude rows where reporting_pop is NA or <= 0 after limiting to lineup_years, reducing invalid lookup records before downstream processing.
Error Handling & Code Formatting R/fgt_cumsum.R
Added tryCatch() wrapper around fst::read_fst() calls in load_list_refy() with detailed error reporting including file index and path. Multiple functions reformatted with explicit bracing and whitespace adjustments; no semantic logic changes.
Test Code Updates inst/TMP/TMP_data_testing.R
Added povline = 3 parameter to pip_agg() call; added debug notification; changed test country code from "AUS"/"COL" to "MWI"; removed unused debugonce() line.
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
🐰 A whisker-twitch of filters fine, Error messages now align, Test data shifted, cleaned with care, Bugs be gone—the code's more fair!
✨ Finishing Touches🧪 Generate unit tests (beta)
Create PR with unit tests
Commit unit tests in branch PROD
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prework
Related GitHub issues and pull requests
Summary
Please explain the purpose and scope of your contribution.
Summary by CodeRabbit
Bug Fixes
Chores