[R] create zip archive in R

Max Kuhn mxkuhn at gmail.com
Thu Feb 4 18:34:42 CET 2010


The odfWeave package would really benefit from having an R zip
function to zip a directory to an archive with an .odt extension. The
need for an external zip/uniz utilities has been an issue for many
non-technical windows users.

Max


On Thu, Feb 4, 2010 at 11:14 AM, Duncan Temple Lang
<duncan at wald.ucdavis.edu> wrote:
>
>
> Uwe Ligges wrote:
>>
>>
>> On 04.02.2010 03:31, mkna005 mkna005 wrote:
>>> Hello all!
>>> I was wondering if it is possible to create a zip archive within R and
>>> add files to it?
>>
>> No.
>
> Well, the Rcompression package on the Omegahat package does have some facilities for it.
> It doesn't do it in memory, but does handle issues of moving disparate files to
> a common temporary directory and getting things in order generally to create the zip
> file. But it currently uses the external zip executable to create the archive.
>
> I probably will get around to implementing a version in memory as it has been
> an issue that has nagged me for a while. And we have the code for it.
>
>
>
>
>>
>>
>>> I know it is possible to unzip files but is it
>>> possible the other way round?
>>
>> No.
>>
>>
>> For (compressed) archives see ?tar
>> For other compression formats of single files see ?file
>>
>> Uwe Ligges
>>
>>
>>>
>>> Thanks in advance
>>>
>>> Christoph
>>>
>>> ______________________________________________
>>> R-help at 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.
>>
>> ______________________________________________
>> R-help at 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.
>
> ______________________________________________
> R-help at 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.
>



-- 

Max



More information about the R-help mailing list