Skip to content

Remove setnafill() invalid input error#7710

Open
deh277 wants to merge 4 commits intoRdatatable:masterfrom
deh277:master
Open

Remove setnafill() invalid input error#7710
deh277 wants to merge 4 commits intoRdatatable:masterfrom
deh277:master

Conversation

@deh277
Copy link
Copy Markdown

@deh277 deh277 commented Apr 15, 2026

Closes #7449

Removed an unused error message from the po and pot files so they are less cluttered and more accurate. The error message removed (“‘x’ argument must be numeric type, or list/data.table of numeric types") is no longer being used since #3992 has changed nafill to allow non-numeric types. We made sure to run the test suite on our repository and everything passed on our end.

Worked on by @deh277 and @shantz14

@deh277 deh277 requested review from a team and MichaelChirico as code owners April 15, 2026 23:45
Copy link
Copy Markdown
Member

@shrektan shrektan left a comment

Choose a reason for hiding this comment

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

chinese translation is ok for me

Comment thread NEWS.md

6. Enhanced tests for OpenMP support, detecting incompatibilities such as R-bundled runtime _vs._ newer Xcode and testing for a manually installed runtime from <https://mac.r-project.org/openmp>, [#6622](https://github.com/Rdatatable/data.table/issues/6622). Thanks to @dvg-p4 for initial report and testing, @twitched for the pointers, @tdhock and @aitap for the fix.

7. setnafill() old non-numeric input error message removed from all .po and .pot files.[#7449](https://github.com/Rdatatable/data.table/issues/7449) This reduces clutter and improves file readability, while keeping the new errors in place. Thanks to @MichaelChirico for the issue and @deh277 for the fix.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
7. setnafill() old non-numeric input error message removed from all .po and .pot files.[#7449](https://github.com/Rdatatable/data.table/issues/7449) This reduces clutter and improves file readability, while keeping the new errors in place. Thanks to @MichaelChirico for the issue and @deh277 for the fix.
7. setnafill() old non-numeric input error message removed from all .po and .pot files. This reduces clutter and improves file readability, while keeping the new errors in place. Thanks to @MichaelChirico for the issue and @deh277 for the fix. [#7449](https://github.com/Rdatatable/data.table/issues/7449)

@jangorecki jangorecki added the translation issues/PRs related to message translation projects label Apr 16, 2026
@MichaelChirico
Copy link
Copy Markdown
Member

Hm sorry I think there's some misunderstanding. The point of the bug as of now is to try using setnafill() with various invalid inputs, and see if you find the errors acceptable / clear enough.

If so, we can just close the bug.

The .po / .pot files will get updated in time for the next {data.table} release, there's no need for a PR like this (there are dozens of other messages that would need to be updated in a similarly incremental fashion)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

translation issues/PRs related to message translation projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setnafill error for invalid input should be more helpful

4 participants