Closed jmbarbone closed 12 months ago
can take some inspiration from readr::write_rds():
readr::write_rds()
compress <- match.arg(compress, c("none", "gz", "bz", "xz")) con <- switch( compress, none = file(file, ...), gz = gzfile(file, ...), bz = bzfile(file, ...), xz = xzfile(file, ...) ) write_function(x, con, ...)
all functions need to be rewritten to accept connections and set encoding via that function instead.
can take some inspiration from
readr::write_rds()
:all functions need to be rewritten to accept connections and set encoding via that function instead.