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
Despite explicitly setting .SDcols = xnm (i.e., x1:x3), .SD has picked up r again (as seen from nrow(cor_path) == 4L.
If we replace get(active) with its current value (x2), the code works as expected. The fix of #1548 (to set envir = as.environment(.SD)) doesn't work here.
this might be related to evaluation frame in which .SDcols is evaluated, this should be changed to be evaluated in parent.frame rather than data.table frame.
Activity
jangorecki commentedon Mar 22, 2020
this might be related to evaluation frame in which
.SDcolsis evaluated, this should be changed to be evaluated in parent.frame rather than data.table frame.MichaelChirico commentedon Nov 8, 2026
This is fixed on
master:MichaelChirico commentedon Nov 9, 2026
From bisection: #3771