extract_files: Extract Files From Zip

Description Usage Arguments Value Examples

View source: R/download_tools.R

Description

Extract files from a zip archive.

Usage

1
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

1
2
3
4
5
## Not run: 
f = download_file("ftp://ftp.wildlife.ca.gov/Delta%20Smelt/SKT.zip")
extract_files(f, "SKT", exdir = tempdir())

## End(Not run)

InteragencyEcologicalProgram/smonitr documentation built on Nov. 9, 2020, 7:01 a.m.