Description Usage Arguments Value Author(s) Examples
Prior to untar, the function check if untar was previously performed (untarred file exist locally) and compare checksum value from previous event when present. Untar is performed when file doesn't exists or checksums don't match.
1 2 |
tarfile |
A character string. Represents path to tarfile. |
destfile |
A character string. Represents the name where resulting file is saved. |
checkhash |
Logical. If |
quick |
Logical. If |
dbHash |
Character string. The path to the database file where checksum
value of file is logged.
If the database does not yet exist, one is created.
Default is to use the option |
Untarred/unzipped tarfile
in a subfolder under destfile
using
basename{tarfile}
name.
Melina Houle
1 2 3 4 5 6 | urlpath <- "ftp://sidads.colorado.edu/pub/DATASETS/NOAA/G02171/Hudson_Bay/2006"
urlfile <- "cis_SGRDRHB_20060904_pl_a.tar"
url <- file.path(urlpath, urlfile)
hashDownload(url, destfile = tempdir(), cascade = FALSE)
tar<- file.path(tempdir(), basename(url))
hashUntar(tar, tempdir(), checkhash= FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.