untar(tarfile, files = NULL, list = FALSE, exdir = ".",
compressed = NA, extras = NULL, verbose = FALSE,
restore_times = TRUE, tar = Sys.getenv("TAR"))path.expand) will be performed. Alternatively, a
connection that can be used for binary reads.TRUE, list the files (the equivalent of
"gzip",
"bzip2" and "xz" select that form of compression (and
may be abbreviated to the first letter). TRUE indicates gzip
compression, FALSE no known compression (but an external
NA (the default) indicates that the type is inferred from the
file header.NULL or a character string: further command-line
flags such as to be passed to an external tar can also contain flags separated from the command by spaces.list = TRUE, a character vector of (relative or absolute)
paths of files contained in the tar archive. Otherwise the return code from system with an external
0L, invisibly.
tarfile is a connection or if the argument tar is
"internal" or "" (except on Windows, when
What options are supported will depend on the
Arguments compressed, extras and verbose are only
used when an external
The internal implementation restores symbolic links as links on a
Unix-alike, and as file copies on Windows (which works only for
existing files, not for directories), and hard links as links. If the
linking operation fails (as it may on a FAT file system), a file copy
is tried. Since it uses gzfile to read a file it can
handle files compressed by any of the methods that function can
handle: at least
You may see warnings from the internal implementation such
as unsupported entry type 'x'
This often indicates an invalid archive: entry types "A-Z" are
allowed as extensions, but other types are reserved. The only thing
you can do with such an archive is to find a tar program that
handles it, and look carefully at the resulting files. There may also
be the warning using pax extended headers
This is indicates that additional information may have been discarded,
such as ACLs, encodings ....
The standards only support ASCII filenames (indeed, only alphanumeric
plus period, underscore and hyphen). untar makes no attempt to
map filenames to those acceptable on the current system, and treats
the filenames in the archive as applicable without any re-encoding in
the current locale.
tar, unzip.