downloadIfOld | R Documentation |
Checks if a downloaded file is old and re-downloads is necessary
downloadIfOld(
url,
path = getwd(),
file = file.path(path, make.names(basename(url))),
age = "6 months",
overwrite = FALSE,
verbose = FALSE,
...
)
url |
a string specifying the remote location |
path |
local directory to store downloaded files |
file |
local file name |
age |
maximum age of the local file |
overwrite |
replace existing unzipped files |
verbose |
print additional information |
... |
additional arguments for |
Checks if a downloaded file is old and re-downloads is necessary. Any zip files are unzipped.
A character string of files downloaded or unzipped.
download.file
, unzip
## Not run:
theFiles = Pmisc::downloadIfOld(
'https://cran.r-project.org/src/base/Historic/Windows/mva.zip'
)
theFiles
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.