Skip to content

Commit 338711a

Browse files
use catf
1 parent 3758316 commit 338711a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/mergelist.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ mergelist = function(l, on, cols, how=c("left","inner","full","right","semi","an
256256
out = if (!n) as.data.table(l) else l[[1L]]
257257
if (copy) out = copy(out)
258258
if (verbose)
259-
cat(sprintf("mergelist: merging %d table(s), took %.3fs\n", n, proc.time()[[3L]]-p))
259+
catf("mergelist: merging %d table(s), took %.3fs\n", n, proc.time()[[3L]]-p)
260260
return(out)
261261
}
262262
{
@@ -327,7 +327,7 @@ mergelist = function(l, on, cols, how=c("left","inner","full","right","semi","an
327327
if (copy)
328328
.Call(CcopyCols, out, colnamesInt(out, names(out.mem)[out.mem %chin% unique(unlist(l.mem, recursive=FALSE))]))
329329
if (verbose)
330-
cat(sprintf("mergelist: merging %d tables, took %.3fs\n", n, proc.time()[[3L]]-p))
330+
catf("mergelist: merging %d tables, took %.3fs\n", n, proc.time()[[3L]]-p)
331331
out
332332
}
333333

0 commit comments

Comments
 (0)