On Tue, 6 Jan 2009, Spencer Graves wrote:

Hi, All:
    How can I get the list of files contained in a zip file?
"zip.file.extract" will extract a specific 'file' from 'zipname', but how can I get the names of the files in 'zipname'?

Package Rcompression will I believe allow you to do this. (An Omegahat package, with a Windows binary on CRANextras.) R itself does not contain code to do so.

Another approach is to call system("unzip ....", intern=TRUE) and process the result.

--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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