Load a remote R binary file. This function is vectorized and supports multiple URLs in a single call.

loadRemoteData(url, envir = globalenv(),
  overwrite = getOption("acid.overwrite", default = TRUE))

Arguments

url

character. Remote URL file path(s) to R data.

envir

environment. Environment.

overwrite

logical(1). Overwrite existing file on disk.

Value

Invisible named character. Local object name as the name, and the remote URL as the value.

Note

Updated 2019-07-30.

Examples

url <- pasteURL(brioTestsURL, "rnaseq_counts.rds", protocol = "none") print(url)
#> [1] "http://tests.acidgenomics.com/brio/v0.3/rnaseq_counts.rds"
x <- loadRemoteData(url)
#> Importing 'rnaseq_counts.rds' using 'base::readRDS()'.
#> rnaseq_counts #> "http://tests.acidgenomics.com/brio/v0.3/rnaseq_counts.rds"