download archive | R Documentation |
Downloads a specific version
of the Portal Predictions repository from either GitHub or Zenodo (based on source
) into the <main>/raw
sub.
download_archive(
main = ".",
resources_sub = "resources",
version = "latest",
source = "github",
quiet = FALSE,
verbose = FALSE,
force = FALSE,
pause = 30,
timeout = getOption("timeout")
)
main |
|
resources_sub |
|
version |
|
source |
|
quiet |
|
verbose |
|
force |
|
pause |
Positive |
timeout |
Positive |
NULL
, invisible
-ly.
There are two calls to base::Sys.sleep
for pause
seconds each to allow for the file unzipping, copying, and such to catch up.
Other downloads:
download climate forecasts
## Not run:
main1 <- file.path(tempdir(), "archive")
create_dir(main = main1)
download_archive(main = main1)
unlink(main1, recursive = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.