unzip_only: Unzip only files matching a pattern

unzip_onlyR Documentation

Unzip only files matching a pattern

Description

Unzip only files matching a pattern

Usage

unzip_only(
  zip_file,
  pattern = NULL,
  junkpaths = FALSE,
  ...,
  verbose = getOption("verbose")
)

Arguments

zip_file

(character) path to ZIP file

pattern

(character) see utils::glob2rx and stringr::regex

junkpaths

(logical) if TRUE, use only the basename of the stored filepath (discard subdirectory names)

...

further arguments to utils::unzip

verbose

(logical)


BAAQMD/shptools documentation built on March 13, 2023, 6:54 a.m.