[R] decompress tar.gz and zip files

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 13 08:12:58 CET 2010


On Wed, 13 Jan 2010, Nathan S. Watson-Haigh wrote:

> Can anyone point me in the right direction for decompressing text files that 
> are compressed as tar.gz or zip files?

?unztar
?unz
?unzip

Note that neither .tar.gz nor .zip formats are restricted to a single 
file and more usually hold a collection of files.

(If you don't see these, your R needs updating.)

>
> Cheers,
> Nathan
>
> -- 
> --------------------------------------------------------
> Dr. Nathan S. Watson-Haigh
> OCE Post Doctoral Fellow
> CSIRO Livestock Industries
> University Drive
> Townsville, QLD 4810
> Australia
>
> Tel: +61 (0)7 4753 8548
> Fax: +61 (0)7 4753 8600
> Web: http://www.csiro.au/people/Nathan.Watson-Haigh.html


-- 
Brian D. Ripley,                  ripley at 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



More information about the R-help mailing list