You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
strange eval failure in by when there is a condition in i #1356
Really not sure what's going on, but there is some weird interdependency that's causing an error in eval when there is something in i:
dt= data.table(a=1:5, b=1:5, c=1:5)
col= quote(b)
# this works okdt[, a, by= .(eval(col), c)]
# this also works okdt[a>0, a, by= .(b, c)]
# yet this diesdt[a>0, a, by= .(eval(col), c)]
#Error in eval(expr, envir, enclos) : object 'b' not found
Activity
jangorecki commentedon Mar 22, 2020
related to #1180 but workaround that works there is not applicable here
MichaelChirico commentedon Nov 8, 2026
This works fine on current
master, AFAICT it was closed by #4981