ghzip {mmstat4}R Documentation

Creates a ZIP file or directory with files

Description

ghzip creates a ZIP file (if dest has an extension zip) or copies to the destination directory. If dest is NULL then a temporary directory will be used. Please note that neither the ZIP file is deleted nor the target directory is cleaned beforehand if it already exists.

Usage

ghzip(files, dest = NULL)

Arguments

files

ghdecompose object or character: list of files to copy

dest

character: ZIP file name of destination directory (default: NULL)

Value

the name of the destination directory or the ZIP file

Examples

if (interactive()) {
  zipfile <- tempfile(fileext='.zip')
  files   <- list.files(system.file(package="mmstat4"), recursive=TRUE)
  ghzip(files, zipfile)
}

[Package mmstat4 version 0.2.1 Index]