| Line 12... |
Line 12... |
| 12 |
Extract files from or list a tar archive.
|
12 |
Extract files from or list a tar archive.
|
| 13 |
}
|
13 |
}
|
| 14 |
\usage{
|
14 |
\usage{
|
| 15 |
untar(tarfile, files = NULL, list = FALSE, exdir = ".",
|
15 |
untar(tarfile, files = NULL, list = FALSE, exdir = ".",
|
| 16 |
compressed = NA, extras = NULL, verbose = FALSE,
|
16 |
compressed = NA, extras = NULL, verbose = FALSE,
|
| 17 |
tar = Sys.getenv("TAR"))
|
17 |
restore_times = TRUE, tar = Sys.getenv("TAR"))
|
| 18 |
}
|
18 |
}
|
| 19 |
\arguments{
|
19 |
\arguments{
|
| 20 |
\item{tarfile}{The pathname of the tar file: tilde expansion (see
|
20 |
\item{tarfile}{The pathname of the tar file: tilde expansion (see
|
| 21 |
\code{\link{path.expand}}) will be performed. Alternatively, a
|
21 |
\code{\link{path.expand}}) will be performed. Alternatively, a
|
| 22 |
\link{connection} that can be used for binary reads.}
|
22 |
\link{connection} that can be used for binary reads.}
|
| Line 43... |
Line 43... |
| 43 |
flags such as \option{-p} to be passed to an external \command{tar}
|
43 |
flags such as \option{-p} to be passed to an external \command{tar}
|
| 44 |
program.}
|
44 |
program.}
|
| 45 |
|
45 |
|
| 46 |
\item{verbose}{logical: if true echo the command used.}
|
46 |
\item{verbose}{logical: if true echo the command used.}
|
| 47 |
|
47 |
|
| - |
|
48 |
\item{restore_times}{logical. If true (default) restore file
|
| - |
|
49 |
modification times. If false, the equivalent of the \option{-m}
|
| - |
|
50 |
flag. Times in tarballs are supposed to be in UTC, but tarballs are
|
| - |
|
51 |
submitted to CRAN with times in the future or far past: this
|
| - |
|
52 |
argument allows such times to be discarded.}
|
| - |
|
53 |
|
| 48 |
\item{tar}{character string: the path to the command to be used. If
|
54 |
\item{tar}{character string: the path to the command to be used. If
|
| 49 |
the command itself contains spaces it needs to be quoted -- but
|
55 |
the command itself contains spaces it needs to be quoted -- but
|
| 50 |
\code{tar} can also contain flags separated from the command by spaces.}
|
56 |
\code{tar} can also contain flags separated from the command by spaces.}
|
| 51 |
}
|
57 |
}
|
| 52 |
|
58 |
|