View source: R/download_files.R
download_files | R Documentation |
Download binaries from repository
download_files(dllist, overwrite = FALSE)
dllist |
A named list of data.frames. The data.frame should contain the version, url and file to be processed, the directory to download the file to and whether the file already exists. |
overwrite |
Overwrite existing binaries. Default value of FALSE |
A data.frame indicating whether a file was downloaded for a platform.
## Not run: trdata <- system.file("testdata", "test_dlres.Rdata", package = "binman") tldata <- system.file("testdata", "test_dllist.Rdata", package = "binman") load(trdata) load(tldata) dllist <- assign_directory(test_dllist, "myapp") testthat::with_mock( `httr::GET` = function(...) { test_llres }, `base::dir.create` = function(...) { TRUE }, dlfiles <- download_files(dllist) ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.