Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify error for := under with=FALSE #6834

Open
wants to merge 1 commit into
base: depr-inplace
Choose a base branch
from

Conversation

MichaelChirico
Copy link
Member

No description provided.

Copy link
Member Author

MichaelChirico commented Feb 23, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MichaelChirico MichaelChirico changed the title Simplify error for !with + := Simplify error for := under with=FALSE Feb 23, 2025
Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.64%. Comparing base (d35148a) to head (7f5a437).

Additional details and impacted files
@@               Coverage Diff                @@
##           depr-inplace    #6834      +/-   ##
================================================
- Coverage         98.64%   98.64%   -0.01%     
================================================
  Files                79       79              
  Lines             14638    14637       -1     
================================================
- Hits              14440    14439       -1     
  Misses              198      198              

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

Copy link

Comparison Plot

Generated via commit 7f5a437

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 4 minutes and 26 seconds
Installing different package versions 8 minutes and 4 seconds
Running and plotting the test cases 2 minutes and 23 seconds

# TODO(>=1.18.0): Simplify this error
stopf("with=FALSE together with := was deprecated in v1.9.4 released Oct 2014; this has been warning since v1.15.0. Please wrap the LHS of := with parentheses; e.g., DT[,(myVar):=sum(b),by=a] to assign to column name(s) held in variable myVar. See ?':=' for other examples.")
}
if (jsub %iscall% ":=") stopf("`:=` is only supported under with=TRUE.")
Copy link
Member

@ben-schwen ben-schwen Mar 8, 2025

Choose a reason for hiding this comment

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

Maybe keep the

See ?':=' for other examples."

although a bit superfluous?

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