-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error in eval() for tbl_dt #585
Comments
@hadley do you really want me to pick this up; This is data.table stuff for which I'm kind of clueless. It looks like it happens in the
The generated call looks like :
|
Ooops, no. I misread the message. |
@arunsrinivasan is this a bug, or deliberate? dt <- data.table( x = c(1, 1, 2), r = c(T, F, T))
dt[r, ]
# Error in eval(expr, envir, enclos) : object 'r' not found
dt[r == T,]
# x r
# 1: 1 TRUE
# 2: 2 TRUE Comparing a logical vector to TRUE is usually a redundant operation. |
Expected. When |
Fixed as part of 225f01b |
Boolean variables in tbl_dt are not evaluated when there are no other filters.
This gets filtered:
This one throws an error:
Both tbl_df and a base data.frame keep working just fine.
The text was updated successfully, but these errors were encountered: