Skip to content

added news for PR 7260#7263

Merged
tdhock merged 4 commits intomasterfrom
7260news
Aug 25, 2025
Merged

added news for PR 7260#7263
tdhock merged 4 commits intomasterfrom
7260news

Conversation

@Mukulyadav2004
Copy link
Contributor

added news section breaking change in PR #7260

@codecov
Copy link

codecov bot commented Aug 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.80%. Comparing base (55bbc3d) to head (279b24b).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7263   +/-   ##
=======================================
  Coverage   98.80%   98.80%           
=======================================
  Files          81       81           
  Lines       15250    15250           
=======================================
  Hits        15067    15067           
  Misses        183      183           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

NEWS.md Outdated

1. `data.table(x=1, <expr>)`, where `<expr>` is an expression resulting in a 1-column matrix without column names, will eventually have names `x` and `V2`, not `x` and `V1`, consistent with `data.table(x=1, <expr>)` where `<expr>` results in an atomic vector, for example `data.table(x=1, cbind(1))` and `data.table(x=1, 1)` will both have columns named `x` and `V2`. In this release, the matrix case continues to be named `V1`, but the new behavior can be activated by setting `options(datatable.old.matrix.autoname)` to `FALSE`. See point 5 under Bug Fixes for more context; this change will provide more internal consistency as well as more consistency with `data.frame()`.

2. `dcast()` now errors when `fun.aggregate` returns length != 1, regardless of `fill` ([#6629](https://github.com/Rdatatable/data.table/issues/6629),[#6032](https://github.com/Rdatatable/data.table/issues/6032)). Previously, when `fill` was not `NULL`, `dcast` warned and returned an undefined result. Updated code to use a scalar-returning aggregator instead of identity or functions that return vectors.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. `dcast()` now errors when `fun.aggregate` returns length != 1, regardless of `fill` ([#6629](https://github.com/Rdatatable/data.table/issues/6629),[#6032](https://github.com/Rdatatable/data.table/issues/6032)). Previously, when `fill` was not `NULL`, `dcast` warned and returned an undefined result. Updated code to use a scalar-returning aggregator instead of identity or functions that return vectors.
2. `dcast()` now errors when `fun.aggregate` returns length != 1 (consistent with documentation), regardless of `fill` ([#6629](https://github.com/Rdatatable/data.table/issues/6629),[#6032](https://github.com/Rdatatable/data.table/issues/6032)). Previously, when `fill` was not `NULL`, `dcast` warned and returned an undefined result. This change has been planned since 1.16.0 (25 Aug 2024).

also please move to section

### BREAKING CHANGE

Updated breaking changes and new features in NEWS.md.
Co-authored-by: Toby Dylan Hocking <tdhock5@gmail.com>
Co-authored-by: Toby Dylan Hocking <tdhock5@gmail.com>
Copy link
Member

@tdhock tdhock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@tdhock tdhock merged commit 83fbcf1 into master Aug 25, 2025
11 checks passed
@jangorecki jangorecki deleted the 7260news branch September 27, 2025 09:16
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.

2 participants