@@ -128,7 +128,7 @@ replace_dot_alias = function(e) {
128128 }
129129}
130130
131- .reassign_extracted_table = function (name , value , err_msg_detail , env = parent.frame(2L ), err_msg_na = NULL ) {
131+ .reassign_extracted_table = function (name , value , err_msg_detail , env = parent.frame(2L )) {
132132 k = eval(name [[2L ]], env , env )
133133 if (is.list(k )) {
134134 origj = j = if (name %iscall % " $" ) as.character(name [[3L ]]) else eval(name [[3L ]], env , env )
@@ -141,11 +141,7 @@ replace_dot_alias = function(e) {
141141 if (is.character(j )) {
142142 j = match(j , names(k ))
143143 if (is.na(j )) {
144- if (is.null(err_msg_na )) {
145- internal_error(" Attempt to do recursive set* operation to an unknown name %s" , origj ) # nocov
146- } else {
147- stopf(err_msg_na , origj )
148- }
144+ stopf(" Item '%s' not found in names of input list" , origj )
149145 }
150146 }
151147 .Call(Csetlistelt , k , as.integer(j ), value )
@@ -2988,7 +2984,7 @@ setDT = function(x, keep.rownames=FALSE, key=NULL, check.names=FALSE) {
29882984 assign(name , x , parent.frame(), inherits = TRUE )
29892985 } else if (.is_simple_extraction(name )) {
29902986 # common case is call from 'lapply()'
2991- .reassign_extracted_table(name , x , err_msg_detail = " setDT(L[[i]])" , err_msg_na = " Item '%s' not found in names of input list " )
2987+ .reassign_extracted_table(name , x , err_msg_detail = " setDT(L[[i]])" )
29922988 } else if (name %iscall % " get" ) { # #6725
29932989 # edit 'get(nm, env)' call to be 'assign(nm, x, envir=env)'
29942990 name = match.call(get , name )
0 commit comments