Learn R Programming

binman (version 0.1.3)

download_files: Download binaries

Description

Download binaries from repository

Usage

download_files(dllist, overwrite = FALSE)

Value

A data.frame indicating whether a file was downloaded for a platform.

Arguments

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

Examples

Run this code
if (FALSE) {
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)
)
}

Run the code above in your browser using DataLab