unpack: unpack a set of files

View source: R/functions.r

unpackR Documentation

unpack a set of files

Description

This function can handle tar.gz and zip files. One can decide if tar.gz files should be just extracted (use keeptar = TRUE) or extracted and untared (use keeptar = FALSE).

Usage

unpack(
  x,
  keeptar = TRUE,
  exdir = ".",
  overwrite = TRUE,
  remove = FALSE,
  cores = NULL,
  barstyle = "win",
  debug = FALSE,
  ...
)

Arguments

x

vector of filenames

keeptar

Should the tar.gz archives be extracted or extracted and untared?

exdir

character string. The directory to extract files to.

overwrite

logical. Should any existing files be overwritten?

remove

logical. Should the archive be deleted after extraction? Also deletes skipped archives.

cores

integer. Number of cores used to extract the files. Defaults to NULL which is a single core.

barstyle

character. Style of the progressbar drawn by pbapply. Possible values are "timer", "txt", "win", "tk", or "none".

debug

logical. Should informations about debugging be printed?

...

arguments passed from other method

Value

The default of unzip/untar/gunzip will be returned

Author(s)

Simon Frey

See Also

unzip, untar, gunzip


freysimon/TigeR documentation built on April 18, 2024, 4:57 p.m.