is_tgz: Test if a file is tarred and gzip (.tar, .gz or tgz)

View source: R/compressed.R

is_tgzR Documentation

Test if a file is tarred and gzip (.tar, .gz or tgz)

Description

We guess that the first four bytes tell us enough to know what kind of zip file we have. For more information see http://pank.org/blog/archives/000202.html tgz's first four bytes will be 1f 8b 08 00

Usage

is_tgz(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_gzip, is_zip, pack_directory, test_compressed, un_bzip2, un_gz, un_tgz, un_zip, unpack_archive


BigelowLab/rscripting documentation built on Oct. 24, 2022, 5:31 p.m.