-
Notifications
You must be signed in to change notification settings - Fork 1k
feat : added condition to check the RHS of := #6742
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
Closed
Closed
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
dbb7794
checking RHS of :=
venom1204 b333d52
Merge branch 'master' into issue5829
venom1204 6c8dd59
Merge branch 'Rdatatable:master' into issue5829
venom1204 49c52d0
added condition to check the rhs
venom1204 1d29473
added tests
venom1204 5f7f5ff
k
venom1204 8624ba1
Merge branch 'issue5829' of https://github.com/venom1204/data.table i…
venom1204 c9693bd
merged branch
venom1204 2dfd231
lint r
venom1204 2ded81a
lintr
venom1204 e50316a
updated
venom1204 3fe9173
Merge branch 'master' into issue5829
venom1204 b295e9b
removed the list check
venom1204 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21157,3 +21157,13 @@ test(2317.6, DT1[DF1, on='a', .(d = x.a + i.d)]$d, 5) | |
| test(2317.7, DT1[DF2, on='a', e := i.e]$e, 5) | ||
| test(2317.8, DT1[DF2, on='a', e2 := x.a + i.e]$e2, 6) | ||
| test(2317.9, DT1[DF2, on='a', .(e = x.a + i.e)]$e, 6) | ||
|
|
||
| DT = data.table(x = 1:3) | ||
|
|
||
| test(2318.1, DT[, y := mean], error = "RHS of `:=` is a function") | ||
| test(2318.2, DT[, y := list(mean)], error = "RHS of `:=` is a length-1 list containing a function") | ||
| f = mean | ||
| test(2318.3, DT[, y := f], error = "RHS of `:=` is a function") | ||
| test(2318.4, DT[, y := identity(mean)], error = "RHS of `:=` is a function") | ||
|
||
| test(2318.5, data.table(x = 1)[, y := mean], error = "RHS of `:=` is a function") | ||
| test(2318.6, data.table(x = 1:2)[, y := mean], error = "RHS of `:=` is a function") | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is incorrect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi
i updated the condition and the tests, can you please review if something is missing/wrong ,when you have time.
thank you.