[R] gzfile with multiple entries in the archive
Greg Snow
Greg.Snow at intermountainmail.org
Wed Nov 15 16:19:55 CET 2006
If you know how to use the unix/linux tools already, then you may want
to look at cygwin (http://www.cygwin.com/), it allows those of us
trapped in a windows world to still lead productive lives with the
unix/linux tools.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at intermountainmail.org
(801) 408-8111
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of John James
Sent: Tuesday, November 14, 2006 5:07 AM
To: r-help at stat.math.ethz.ch
Subject: [R] gzfile with multiple entries in the archive
If I open a tgz archive with gzfile and then parse it using readLines I
miss the initial line of each member of the archive - and also the name
of the file although the archive otherwise complete (but useless!).
Is there any way within R to extract both the list of files in a tgz
archive and to extract any one of these files?
Clearly I can use zcat and tar on Linux, but I need this to work within
the R environment on Windows!
Thanks
John James
[[alternative HTML version deleted]]
______________________________________________
R-help at stat.math.ethz.ch 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.
More information about the R-help
mailing list