Can one write a zip file from R?

I want to create a file with a name like "dat.zip", being a zip file containing "dat.csv". I can create "dat.csv", then call "system('zip -r9 dat.zip dat.csv')". Is there a better way?

I can use "gzfile" to write a gz file, but I don't know how to give that a structure that would support unzipping to a *.csv file.

     Thanks,
Spencer
--
Spencer Graves, PE, PhD
President and Chief Operating Officer
Structure Inspection and Monitoring, Inc.
751 Emerson Ct.
San José, CA 95126
ph:  408-655-4567

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to