Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gzip.GenericDataFile

Compresses/uncompresses a file


Description

Compresses/uncompresses a file using gzip compression. When compressing (uncompressing), the new filename has suffix .gz appended (removed), which is also used to test if a file is gzip'ed or not.

Usage

## S3 method for class 'GenericDataFile'
gzip(this, ...)
 ## S3 method for class 'GenericDataFile'
gunzip(this, ...)
 ## S3 method for class 'GenericDataFile'
isGzipped(this, ...)

Arguments

...

Arguments passed to "R.utils::gzip" and "R.utils::gunzip", respectively.

verbose

...

Value

Returns (invisibly) the updated pathname. When compressing (uncompressing), an exception is thrown if the file is already compressed (not compressed). An exception is thrown if the file does not exist.

Author(s)

Henrik Bengtsson

See Also

Internally gzip is used. For more information see GenericDataFile.


R.filesets

Easy Handling of and Access to Files Organized in Structured Directories

v2.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.