Re: [R] write.zip?

2010-02-10 Thread Duncan Temple Lang
Hi Spencer I just put a new source version (0.9-0) of the Rcompression package on the www.omegahat.org/R repository and it has a new function zip() that creates or appends to a zip file, allowing one to provide alternative names. I'll add support for writing content from memory (i.e. AsIs char

Re: [R] write.zip?

2010-02-10 Thread spencerg
Thanks to Dieter Menne and Prof. Ripley for replies. For certain definitions of "better" (e.g., transportability?), the Rcompression package might be superior to the system call I mentioned. I also just found the "tar" function in the "utils" package, which looks like it might be more

Re: [R] write.zip?

2010-02-10 Thread Prof Brian Ripley
On Tue, 9 Feb 2010, spencerg wrote: 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? Not really. One could use

Re: [R] write.zip?

2010-02-10 Thread Dieter Menne
spencerg wrote: > > 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 >

[R] write.zip?

2010-02-09 Thread spencerg
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 kno