Skip to content

Commit dd8caaa

Browse files
Drop gettext and use stopf directly (#7528)
* Drop gettext and use stopf directly * No call.
1 parent e26cfb3 commit dd8caaa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/fcast.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ dcast.data.table = function(data, formula, fun.aggregate = NULL, sep = "_", ...,
185185
fun.call = aggregate_funs(fun.call, lvals, sep, ...)
186186
maybe_err = function(list.of.columns) {
187187
if (!all(lengths(list.of.columns) == 1L)) {
188-
msg = gettext("Aggregating functions 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.")
189-
stop(msg, domain=NA, call. = FALSE)
188+
stopf("Aggregating functions 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.")
190189
}
191190
list.of.columns
192191
}

0 commit comments

Comments
 (0)