Learn R Programming

SpaDES.tools (version 0.1.1)

extractFromArchive: Extract files from archive.

Description

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

Usage

extractFromArchive(archivePath, dataPath = dirname(archivePath), needed,
  extractedArchives = NULL)

Arguments

archivePath

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

dataPath

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

needed

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

extractedArchives

Used internally.

Value

A character vector listing the paths of the extracted archives.