[R] write.zip?

spencerg spencer.graves at prodsyse.com
Wed Feb 10 04:15:32 CET 2010


      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



More information about the R-help mailing list