I am on Windows using R 4.0.2 and data.table 1.13.0 and dplyr 1.0.0
This is such a weird bug that I can't make reproducible example.
library(data.table)
df2 = structure(list(total_amount = 9.39999961853027, tip_amount = 0,
total_amount = 9.39999961853027, passenger_count = 1L), row.names = c(NA,
-1L), class = c("data.table", "data.frame"))
# this works
df2[total_amount > 10, ]
# this works
df2 %>%
data.frame %>%
filter(total_amount > 10)
# this doesn't work!!!
df2 %>%
filter(total_amount > 10)
and gives error Error in .subset2(chunks, self$get_current_group()) : attempt to select less than one element in integerOneIndex
This is so perplexing. What is going?