is_bzip2: Test if a file is gzipped

View source: R/compressed.R

is_bzip2R Documentation

Test if a file is gzipped

Description

We guess that the first two bytes tell us enough to know it is bzip2 file we have. For more information see https://en.wikipedia.org/wiki/Bzip2#File_format and https://www.ietf.org/rfc/rfc1952

Usage

is_bzip2(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_gzip, 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.