Extract files from a zip archive.

extract_files(path, fnames = ".*", ..., verbose = TRUE)

Arguments

path

The path to the zipfile.

fnames

A vector of file names in the archive to extract. Supports regex.

...

Other arguments passed to utils::unzip().

verbose

If TRUE, display descriptive message.

Value

A vector of extracted file paths.

Examples

if (FALSE) { f = download_file("ftp://ftp.wildlife.ca.gov/Delta%20Smelt/SKT.zip") extract_files(f, "SKT", exdir = tempdir()) }