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))
139
-
j= match(j, names(k))
140
-
if (is.na(j)) internal_error("item '%s' not found in names of list", origj) # nocov
141
-
}
142
-
} elseif (caller=="setDT") {
143
-
if (length(j) ==1L) {
144
-
if (is.character(j)) {
145
-
j= match(j, names(k))
146
-
if (is.na(j))
147
-
stopf("Item '%s' not found in names of input list", origj)
135
+
if (length(j) !=1L) {
136
+
stopf(err_msg_len, length(j))
137
+
}
138
+
if (is.character(j)) {
139
+
idx= match(j, names(k))
140
+
if (is.na(idx)) {
141
+
if (is.null(err_msg_na)) {
142
+
internal_error("item '%s' not found in names of list", origj)
err_msg_len="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",
1247
+
err_msg_na=NULL# Triggers internal_error for this case # nocov
0 commit comments