-
Here
|
DTPRINT(_("Written %"PRId64" rows in %.3f secs using %d thread%s. MaxBuffUsed=%d%%\n"), |
|
args.nrow, 1.0*(wallclock()-t0), nth, nth ==1 ? "" : "s", maxBuffUsedPC); |
|
} |
better to avoid nth ==1 ? "" : "s", and use "thread/s" or similar.
-
Here
|
plural_part <- sprintf(ngettext(length(tt), "The item in the 'by' or 'keyby' list is length %s.", "The items in the 'by' or 'keyby' list have lengths %s."), brackify(tt)) |
|
stopf("%s Each must be length %d; the same length as there are rows in x (after subsetting if i is provided).", plural_part, xnrow) |
I would've preferred
stop_msg = ngettext(
length(tt),
"The item in the 'by' or 'keyby' list is length %s. Each must be length %d; the same length as there are rows in x (after subsetting if i is provided).",
"The items in the 'by' or 'keyby' list have lengths %s. Each must be length %d; the same length as there are rows in x (after subsetting if i is provided)."
)
stopf(stop_msg, brackify(tt), xnrow)
used that plural_msg or stop_msg do not interfere with anything. It was not inmediately clear to me what "%s Each must be length %d... was meaning. (also we avoid <- right?)
Here
data.table/src/fwrite.c
Lines 1119 to 1121 in b089b74
better to avoid
nth ==1 ? "" : "s",and use "thread/s" or similar.Here
data.table/R/data.table.R
Lines 895 to 896 in b089b74
I would've preferred
used that plural_msg or stop_msg do not interfere with anything. It was not inmediately clear to me what
"%s Each must be length %d...was meaning. (also we avoid <- right?)