is_gzip: Test if a file is gzipped

View source: R/compressed.R

is_gzipR Documentation

Test if a file is gzipped

Description

We guess that the first two bytes tell us enough to know what kind of zip file we have. For more information see http://www.gzip.org/zlib/rfc-gzip.html#file-format and https://www.ietf.org/rfc/rfc1952

Usage

is_gzip(filename)

Arguments

filename

the fully qualified name of the file to test

Value

logical, TRUE if the input is likely gzipped

See Also

Other COMPRESSED: is_bzip2, is_tgz, is_zip, pack_directory, test_compressed, un_bzip2, un_gz, un_tgz, un_zip, unpack_archive


btupper/rscripting documentation built on Oct. 18, 2022, 6:47 p.m.