-
Notifications
You must be signed in to change notification settings - Fork 991
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
get() in by and the inconsistent error #4873
Comments
I did some digging and the issue you are showing here stems from an optimization that As I see it, properly fixing this would require either tightening or even completely turning off the optimization which is probably not gonna fly. The other alternative would be to go through the parse tree for all the lazily evaluated arguments. As for the error message that you posted, kinda hard to tell without the actual code but likely an error/typo on your end: IDT[, .N, by = .(sum)]
# Error in `[.data.table`(IDT, , .N, by = .(sum)) :
# column or expression 1 of 'by' or 'keyby' is type builtin. Do not quote column names. Usage: DT[,sum(colC),by=list(colA,month(colB))] |
Will #4982 close this, if accepted? |
I just tested the repro code with the #4982 suggested PR, and it works fine. |
This is the closest I could get to reproducing the error I got on data in the wild when I added a logical in i, but my actual error message was
I'm using
R 4.0.2
anddata.table_1.13.4
on Windows 10.The text was updated successfully, but these errors were encountered: