Learn R Programming

reproducible (version 0.2.0)

extractFromArchive: Extract files from archive

Description

Extract zip or tar archive files, possibly nested in other zip or tar archives.

Usage

extractFromArchive(archive, destinationPath = dirname(archive), neededFiles,
  extractedArchives = NULL, checkSums, needChecksums,
  filesExtracted = character())

Arguments

archive

Character string giving the path of the archive containing the file to be extracted.

destinationPath

Character string giving the path where neededFiles will be extracted. Defaults to the archive directory.

neededFiles

Character string giving the name of the file(s) to be extracted.

extractedArchives

Used internally to track archives that have been extracted from.

checkSums

A checksums file, e.g., created by Checksums(..., write = TRUE)

needChecksums

A numeric, with 0 indicating do not write a new checksums, 1 write a new one, 2 append new information to existing one.

filesExtracted

Used internally to track files that have been extracted.

...

Passed to unzip or untar, e.g., overwrite

Value

A character vector listing the paths of the extracted archives.