I found zip and the RCompression package but can they do:
zip
RCompression
write.zip(x, file = "foo.zip")
as you'd with write.csv?
write.csv
I'm also aware of gzfile.
gzfile
It's possible using gzip.
write.csv(mtcars, file=gzfile("mtcars.csv.gz"))