A wrapper for an external
zip command to create zip archives.
The pathname of the zip file: tilde expansion (see
A character vector of recorded filepaths to be included.
A character string of flags to be passed to the command: see ‘Details’.
An optional character vector: see ‘Details’.
A character string specifying the external command to be used.
On a Unix-alike, the default for
zip will by default use the
value of R_ZIPCMD, which is set in ‘etc/Renviron’ if an
unzip command was found during configuration. On Windows, the
default relies on a
zip program (for example that from
Rtools) being in the path.
The default for
flags is that appropriate for zipping up a
directory tree in a portable way: see the system-specific help for the
zip command for other possibilities.
extras can be used to specify
followed by a list of filepaths to exclude or include. Since
extras will be treated as if passed to
the filepaths contain spaces they must be quoted e.g. by
The status value returned by the external command, invisibly.
untar for (un)packing tar archives.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.