Skip to content

Commit fade922

Browse files
author
Toby Dylan Hocking
committed
make lint happy
1 parent 38ba6a4 commit fade922

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/fcast.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ dcast.data.table = function(data, formula, fun.aggregate = NULL, sep = "_", ...,
194194
if (!all(lengths(list.of.columns) == 1L)) {
195195
msg <- gettext("Aggregating function(s) should take a vector as input and return a single value (length=1), but they do not, so the result is undefined. Please fix by modifying your function so that a single value is always returned.")
196196
if (is.null(fill)) { # TODO change to always stopf #6329
197-
stop(msg, domain=NA)
198-
} else {
199-
warning(msg, domain=NA)
197+
stop(msg, domain=NA, call. = FALSE)
198+
} else {
199+
warning(msg, domain=NA, call. = FALSE)
200200
}
201201
}
202202
list.of.columns

0 commit comments

Comments
 (0)