Rev 59039 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/zip.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2011 R Core Team% Distributed under GPL 2 or later\name{zip}\alias{zip}\title{Create Zip archives}\description{A wrapper for an external \command{zip} command to create zip archives.}\usage{zip(zipfile, files, flags = "-r9X", extras = "",zip = Sys.getenv("R_ZIPCMD", "zip"))}\arguments{\item{zipfile}{The pathname of the zip file: tilde expansion (see\code{\link{path.expand}}) will be performed.}\item{files}{A character vector of recorded filepaths to be included.}\item{flags}{A character string of flags to be passed to the command:see \sQuote{Details}.}\item{extras}{An optional character vector: see \sQuote{Details}.}\item{zip}{A character string specifying the external command to be used.}}\details{On a Unix-alike, the default for \code{zip} will by default use thevalue of \env{R_ZIPCMD}, which is set in \file{etc/Renviron} if an\code{unzip} command was found during configuration. On Windows, thedefault relies on a \command{zip} program (for example that fromRtools) being in the path.The default for \code{flags} is that appropriate for zipping up adirectory tree in a portable way: see the system-specific help for the\command{zip} command for other possibilities.Argument \code{extras} can be used to specify \code{-x} or \code{-i}followed by a list of filepaths to exclude or include.}\value{The status value returned by the external command, invisibly.}\seealso{\code{\link{unzip}}, \code{\link{unz}}.}\keyword{file}\keyword{utilities}