unpack | R Documentation |
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).
unpack(
x,
keeptar = TRUE,
exdir = ".",
overwrite = TRUE,
remove = FALSE,
cores = NULL,
barstyle = "win",
debug = FALSE,
...
)
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 |
debug |
logical. Should informations about debugging be printed? |
... |
arguments passed from other method |
The default of unzip/untar/gunzip will be returned
Simon Frey
unzip
, untar
, gunzip
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.