I found the zip and RCompression package, but can they do:
zip
RCompression
write.zip(x, file = "foo.zip")
how would you do with write.csv ?
write.csv
I also know gzfile .
gzfile
Use of gzip is possible.
write.csv(mtcars, file=gzfile("mtcars.csv.gz"))
This can be done quite easily using the readr and gzip functions.
write_tsv(mtcars, file.path(dir, "mtcars.tsv.gz")) write_csv(mtcars, file.path(dir, "mtcars.csv.gz"))