\HeaderA{unzip}{Extract or List Zip archives}{unzip}
\keyword{file}{unzip}
\keyword{utilities}{unzip}
\begin{Description}\relax
Extract files from or list a zip archive.
\end{Description}
\begin{Usage}
\begin{verbatim}
unzip(zipfile, files = NULL, list = FALSE, overwrite = TRUE,
       junkpaths = FALSE, exdir = ".")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{zipfile}] The pathname of the zip file: tilde expansion (see
\code{\LinkA{path.expand}{path.expand}}) will be performed.
\item[\code{files}] A character vector of recorded filepaths to be extracted:
the default is to extract all files.
\item[\code{list}] If \code{TRUE}, list the files and extract none.  The
equivalent of \command{unzip -l}.
\item[\code{overwrite}] If \code{TRUE}, overwrite existing files, otherwise
ignore such files.  The equivalent of \command{unzip -o}.
\item[\code{junkpaths}] If \code{TRUE}, use only the basename of the stored
filepath when extracting.  The equivalent of \command{unzip -j}.
\item[\code{exdir}] The directory to extract files to (the equivalent of
\code{unzip -d}).  It will be created if necessary.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Extraction will overwrite any existing files.
\end{Details}
\begin{Value}
If \code{list = TRUE}, a data frame with columns \code{Name},
\code{Length} (the size of the uncompressed file) and \code{Date} (of
class \code{"\LinkA{POSIXct}{POSIXct}"}).

Otherwise, a character vector of the filepaths extracted to, invisibly.
\end{Value}
\begin{Source}\relax
The C code uses \code{zlib} and is in particular based on the
contributed \samp{minizip} application in the \code{zlib} sources by
Gilles Vollant.
\end{Source}
\begin{SeeAlso}\relax
\code{\LinkA{zip.file.extract}{zip.file.extract}}
\end{SeeAlso}

