loadRemoteData: Load remote data

Description Usage Arguments Value Note Examples

View source: R/loadRemoteData.R

Description

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

Usage

1
2
3
4
5
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 2020-01-19.

Examples

1
2
3
4
5
6
7
8
url <- AcidBase::pasteURL(
    pipetteTestsURL,
    "rnaseq_counts.rds",
    protocol = "none"
)
print(url)
x <- loadRemoteData(url)
print(x)

acidgenomics/pipette documentation built on Sept. 27, 2021, 9:10 a.m.