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.
The text was updated successfully, but these errors were encountered:
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.
This may be related to #2036 and/or #1548. Sorry for the over-long example, the last command is the one that matters:
Despite explicitly setting
.SDcols = xnm
(i.e.,x1:x3
),.SD
has picked upr
again (as seen fromnrow(cor_path) == 4L
.If we replace
get(active)
with its current value (x2
), the code works as expected. The fix of #1548 (to setenvir = as.environment(.SD)
) doesn't work here.The text was updated successfully, but these errors were encountered: