Skip to content

Commit 9bc3daa

Browse files
committed
Thinko: length -> nrow
1 parent 519c5e5 commit 9bc3daa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/test.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ test.data.table = function(script="tests.Rraw", verbose=FALSE, pkg=".", silent=F
290290
warnings = rbindlist(env$warnings)
291291
setnames(warnings, c("after test", "warning", "calls"))
292292
catf(
293-
ngettext(length(warnings),
293+
ngettext(nrow(warnings),
294294
"Caught %d warning outside the test() calls:\n",
295295
"Caught %d warnings outside the test() calls:\n"
296296
),

0 commit comments

Comments
 (0)