unzip {utils} | R Documentation |
Extract files from or list a zip archive.
unzip(zipfile, files = NULL, list = FALSE, overwrite = TRUE,
junkpaths = FALSE, exdir = ".")
zipfile |
The pathname of the xip file: tilde expansion (see
|
files |
A character vector of recorded filepaths to be extracted: the default is to extract all files. |
list |
If |
overwrite |
If |
junkpaths |
If |
exdir |
The directory to extract files to (the equivalent of
|
Extraction will overwrite any existing files.
If list = TRUE
, a data frame with columns Name
,
Length
(the size of the uncompressed file) and Date
(of
class "POSIXct"
).
Otherwise, a character vector of the filepaths extracted to, invisibly.
The C code uses zlib
and is in particular based on the
contributed ‘minizip’ application in the zlib
sources by
Gilles Vollant.
zip.file.extract