Repository navigation
Polish NEWS for the 2.3.0 release - #1231
Merged
Merged
Conversation
Group the development NEWS into sections (breaking changes, new features, bug fixes, documentation, internal) with a short summary. Breaking changes that now error on previously accepted input are flagged in their own section, as requested in the review of #1212. Add missing entries for #935 (print suppression during :=, data.table >= 1.17.0), #763 (binary factor level warning) and #1230. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1231 +/- ##
=======================================
Coverage 99.18% 99.18%
=======================================
Files 41 41
Lines 2331 2331
=======================================
Hits 2312 2312
Misses 19 19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fix inaccurate breaking-change descriptions (#1221, #1200, intro), add a Deprecations section and a proper #888 entry (exported get_forecast_type_ids(), get_duplicate_forecasts(type = )), list all functions that emit the #763 warning, move the #1179 regex fix to bug fixes, flag the #1195 return value and data.table >= 1.17.0 as breaking, and trim long bullets. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
set_forecast_unit() is not exported and cannot add missing columns; point users to get_forecast_unit() and adding the column instead. Clarify that too few columns in logs_categorical() already errored. Mention NA probs (#1196) and the new lifecycle dependency, and tighten the #1230 and #1193 wording. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
CLAUDE: Polishes the development NEWS for the 2.3.0 release (#1229), following the tidyverse NEWS style.
Changes
Sections. The flat list is grouped into Breaking changes, Deprecations, New features, Bug fixes, Documentation and Internal changes, with a short summary paragraph at the top.
Breaking changes flagged clearly, as @seabbs asked in the review of 1199: Error when as_forecast_<type>() renaming would create duplicate columns #1212 ("will need to flag in release notes clearly"). The section collects:
by, returning an unsummarised table #1204, summarize_scores() produces duplicate column names when input has no score columns #1179, Speed upget_pairwise_comparisons()by pivoting scores once instead of merging per model pair #1221, rps_ordinal() and logs_categorical() mishandle permuted predicted_label; missing ncol check for n > 1 #1200 (logs_categorical()only;score()is unaffected) and Missing type checks in sample/quantile validation and message/behaviour mismatches #1211;assert_forecast()return-value change for nominal/ordinal forecasts (Nominal/ordinal assert_forecast: incomplete-forecast error names the wrong forecasts and return value is not invisible(NULL) #1195);typeargument ofget_duplicate_forecasts()sits beforecounts, socountspassed by position must be named (Reworkget_duplicate_forecasts()to S3 to avoid hard-coding columns and types #888);forecastandscoresobjects print output every time a column is changed #935).Each bullet says how to update affected code.
Deprecations. Calling
get_duplicate_forecasts()on a plain data.frame withouttypenow warns (Reworkget_duplicate_forecasts()to S3 to avoid hard-coding columns and types #888).Split bullets. Where a bullet mixed a bug fix with a new error or return-value change (rps_ordinal() and logs_categorical() mishandle permuted predicted_label; missing ncol check for n > 1 #1200, summarize_scores() produces duplicate column names when input has no score columns #1179, Speed up
get_pairwise_comparisons()by pivoting scores once instead of merging per model pair #1221, Missing type checks in sample/quantile validation and message/behaviour mismatches #1211, Nominal/ordinal assert_forecast: incomplete-forecast error names the wrong forecasts and return value is not invisible(NULL) #1195), each part now sits in the right section.Missing entries added for merged changes that had none:
forecastandscoresobjects print output every time a column is changed #935: no spurious printing during:=; newprint.scores(); data.table ≥ 1.17.0;[now validates subsets of any size (previously only subsets with more than 30 rows).observedlevels are in a counterintuitive order.get_duplicate_forecasts()to S3 to avoid hard-coding columns and types #888:get_forecast_type_ids()is exported, andget_duplicate_forecasts()gainstype. Previously this was described as internal.Left out on purpose: the remaining merged PRs without entries are CI, website, README or logo work (e.g. Redirect old getting-started article URL #1223, build(deps): bump actions/checkout from 6 to 7 #1190, Fix macOS CI snapshot precision + lint-changed-files workflow #1182, Crop the hex logo to the artwork bounds #1225), removal of unexported functions (BOT: Fix #684: Delete unused check_input_sample/quantile/interval functions #1093, BOT: Fix #922: Remove check_columns_present and test_columns_present #1080; BOT: Fix #922: Remove check_columns_present and test_columns_present #1080 also reworded some missing-column error messages), or an Rd typo (Fix borked cross-reference in as_forecast_* @param data docstring #1169).
Related
get_duplicate_forecasts()'s deprecation message. The Deprecations entry here matches the fixed message.Verification
get_pairwise_comparisons()by pivoting scores once instead of merging per model pair #1221 only errors on conflicting rows, since exact duplicates are still dropped; the rps_ordinal() and logs_categorical() mishandle permuted predicted_label; missing ncol check for n > 1 #1200 check is inlogs_categorical(), not forecast validation; Reworkget_duplicate_forecasts()to S3 to avoid hard-coding columns and types #888 is user-facing; We should check for consistency when scoring binary forecasts #763 also warns fromas_forecast_binary()/assert_forecast(); and the breaking-changes intro was overstated. A second, independent review re-ran every breaking case on v2.2.0 and main, compared NAMESPACE and the arguments of all exported functions, and added the migration hints, the[validation change and the strategy function names. A third review ran the migration hints on main and v2.2.0. It corrected the Validation permits conflicting observed values within a forecast unit #1201 hint (set_forecast_unit()isn't exported) and the rps_ordinal() and logs_categorical() mishandle permuted predicted_label; missing ncol check for n > 1 #1200 description (too few columns already errored in 2.2.0).🤖 Generated with Claude Code