unzip.files: Unzip multiple zip files

View source: R/unzip.files.R

unzip.filesR Documentation

Unzip multiple zip files

Description

Wrapper for unzip() which unzips a single file.

Usage

unzip.files(
  zipfile,
  files = NULL,
  exdir = ".",
  unzip = "internal",
  overwrite = TRUE,
  ...
)

Arguments

zipfile

vector of names of files to unzip

files

Optional, NULL by default which signifies all files in each zipfile will be extracted. Otherwise, a list, with the nth element being a vector (length 1 or more) of character string names of files to extract from the nth zipfile.

exdir

The directory to extract files to (the equivalent of unzip -d). It will be created if necessary.

unzip

See help for unzip

overwrite

Logical, optional, TRUE by default which means the local file is not overwritten if it already exists.

...

Other arguments passed through to unzip

Value

Returns a list of the filepaths extracted to, from each zipfile. Names of list are the zip file names.


ejanalysis/analyze.stuff documentation built on April 2, 2024, 10:10 a.m.