[R] How to uncompress a gz file in R
Henrik Bengtsson
hb at stat.berkeley.edu
Wed Sep 15 19:43:53 CEST 2010
Hi.
On Wed, Sep 15, 2010 at 9:30 AM, Wonsang You <you at ifn-magdeburg.de> wrote:
> Dear Henrik,
> Thank you so much for your kind help. Unfortunately, I could not find out
> any function such as 'gunzip' in R.utils package.
Hmm... it's been there since at least 2005.
library("R.utils");
help("gunzip")
See the example.
gzip() and gunzip() works on any OS.
/H
> Instead, I could be
> successful by using the following command.
> system("gunzip filename")
> On the other hand, the function 'gzfile' supports the compression as gz
> format, but I still do not know how to decompress gz file by using the
> function 'gzfile'.
> Best Regards,
> Wonsang
>
> On 14 September 2010 15:23, Henrik Bengtsson <hb at stat.berkeley.edu> wrote:
>>
>> To uncompress an *.gz file into another file on disk, see also ?gunzip
>> in the R.utils package.
>>
>> /Henrik
>>
>> 2010/9/14 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
>> > See ?gzfile
>> >
>> > Uwe Ligges
>> >
>> >
>> > On 14.09.2010 11:02, Wonsang You wrote:
>> >>
>> >> Dear Fellows,
>> >>
>> >> I would like to know how to uncompress a gz file at the R console. I
>> >> could
>> >> not find out any help from the R-help archive.
>> >> Thanks for your great help.
>> >>
>> >> Best Regards,
>> >> Wonsang You
>> >>
>> >>
>> >> -----
>> >> --
>> >> Wonsang You
>> >> Special Lab Non-Invasive Brain Imaging
>> >> Leibniz Institute for Neurobiology
>> >> http://www.ifn-magdeburg.de
>> >
>> > ______________________________________________
>> > 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.
>> >
>
>
More information about the R-help
mailing list