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

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

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.

checkSumFilePath

The full path to the checksum.txt file

quick

Passed to Checksums

...

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

Value

A character vector listing the paths of the extracted archives.