gunzip {R.utils} | R Documentation |
Gunzip a file.
## Default S3 method: gunzip(filename, destname=gsub("[.]gz$", "", filename), overwrite=FALSE, remove=TRUE, BFR.SIZE=1e+07, ...)
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. |
remove |
If TRUE , the input file is removed afterward,
otherwise not. |
BFR.SIZE |
The number of bytes read in each chunk. |
... |
Not used. |
Internally gzfile()
(see connections
) is used to
read chunks of the gzip'ed file, which are then written to the output
file.
Returns the number of (input/compressed) bytes read.
Henrik Bengtsson (http://www.braju.com/R/)