gunzip {R.utils}R Documentation

Gunzip a file

Description

Gunzip a file.

Usage

## Default S3 method:
gunzip(filename, destname=gsub(".gz", "", filename), overwrite=FALSE, BFR.SIZE=1e+06, ...)

Arguments

filename Pathname of (gzip'ed) input file to be gunzip'ed.
destname Pathname of output file.
overwrite If the output file already exists, then if overwrite is TRUE the file is silently overwritting, otherwise an exception is thrown.
BFR.SIZE The number of bytes read in each chunk.
... Not used.

Details

Internally gzfile() (see connections) is used to read chunks of the gzip'ed file, which are then written to the output file.

Value

Returns the number of (input/compressed) bytes read.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)


[Package R.utils version 0.9.1 Index]