readLines (as well as other I/O routines) handles gzip files transparently, you should be able to simply use
readLines('/home/file.gz’) Benno On 10 Feb 2015, at 22:45 , Alexandra Catena <amc5...@gmail.com> wrote: > Hello, > > Can someone help me with unzipping a .gz file. I used: > > readLines(gzfile('/home/file.gz')) > > > I also found that I could use gunzip, but after trying to install it, it > says: > > "package ‘gunzip’ is not available (for R version 2.15.1)" > > > Thanks, > Alexandra > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.