Conversions are vectorized and the entire output is buffered in memory and written in one shot. Great option for replacing writing to a textConnection (much much faster). Not such a great option for writing to files, marginal difference from write.table and obviously much greater memory use.
fwrite(
x,
file = stdout(),
sep = "\t",
format = paste(rep("%s", ncol(x)), collapse = sep)
)
a data frame
a connection or return
to return character output directly (fast)
column separator
optional fprint-style column format specifyer
Use for the side effect of writing to the connection returning NULL
, or
return a character value when file=return
.