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
if (length(j)!=1L) stopf("Cannot assign to an under-allocated recursively indexed list -- L[[i]][,:=] syntax is only valid when i is length 1, but its length is %d", length(j))
j= match(j, names(k))
if (is.na(j)) internal_error("item '%s' not found in names of list", origj) # nocov
I’m interested in contributing to this issue. I’ve reviewed the functionality of setDT and [:=] and would like to confirm the following before proceeding:
Could you point me to the primary files where setDT and [:=] handle re-assignments?
Are there specific parts of the logic you’d like to see refactored or reused between these two functions?
Should the shared logic be implemented in R, or would a C utility function be more appropriate?
Additionally, do you have specific test cases or benchmarks you’d like to see included in this enhancement?
Hi Nipun, if you click through on the code blocks above, it will take you to the place in the source code where you'll find the relevant code for this issue.
These two regions are close to identical:
data.table/R/data.table.R
Lines 1224 to 1236 in 70c64ac
data.table/R/data.table.R
Lines 2970 to 2985 in 70c64ac
To keep them in sync, the logic should be extracted to an appropriate helper.
The text was updated successfully, but these errors were encountered: