Skip to content

Commit 731fa9b

Browse files
reference comment
1 parent ab4750b commit 731fa9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/groupingsets.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ groupingsets.data.table = function(x, j, by, sets, .SDcols, id = FALSE, jj, labe
115115
# inline all arguments that might clash with enclosing environment
116116
pcall = substitute(x[0L, jj, by], list(x = x, jj = jj, by = by))
117117
if (length(.SDcols)) pcall$.SDcols = .SDcols
118+
# suppress e.g. the min(double()) warning, #6964
118119
empty = suppressWarnings(eval(pcall, list(.datatable.aware = TRUE), enclos))
119120
if (id && "grouping" %chin% names(empty)) # `j` could have been evaluated to `grouping` field
120121
stopf("When using `id=TRUE` the 'j' expression must not evaluate to a column named 'grouping'.")

0 commit comments

Comments
 (0)