Skip to content

Commit 2c80e7c

Browse files
another site
1 parent 0440efd commit 2c80e7c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/data.table.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,8 @@ replace_dot_alias = function(e) {
104104
missing_obj_fmt = gsub(
105105
"'missing_datatable_variable____'",
106106
"'(?<obj_name>[^']+)'",
107-
tryCatch(eval(parse(text="missing_datatable_variable____")), error=identity)$message
108-
# eval(parse()) to avoid "no visible binding for global variable" note from R CMD check
109-
# names starting with _ don't parse, so no leading _ in the name
107+
# expresion() to avoid "no visible binding for global variable" note from R CMD check
108+
conditionMessage(tryCatch(eval(expression(`____missing_datatable_variable____`)), error=identity))
110109
)
111110
idx = regexpr(missing_obj_fmt, err$message, perl=TRUE)
112111
if (idx > 0L) {

0 commit comments

Comments
 (0)