unpack_archive: Unpack a compressed archive: zip, gzip, and gzipped tarballs.

View source: R/compressed.R

unpack_archiveR Documentation

Unpack a compressed archive: zip, gzip, and gzipped tarballs.

Description

This is a loose routine to unpack and list the contents of a file, possibely a compressed file. If a directory is provided then return a list of the contents, if an uncompressed file (or some other thing) is provided then return just that.

Usage

unpack_archive(filename, ...)

Arguments

filename

the fully qualified name(s) of the file to unpack

...

extra arguments for the system's decompression command (unzip, gzip -d, tar -x)

Details

See un_zip, un_gz and un_tgz

Value

a character vector of the uncompressed filenames including relative paths or a list of such if multiple filenames are provided

See Also

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


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