loadRemoteData: Load remote data

View source: R/loadRemoteData.R

loadRemoteDataR Documentation

Load remote data

Description

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

Usage

loadRemoteData(
  url,
  envir = globalenv(),
  overwrite = getOption(x = "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 2022-05-03.

Examples

url <- AcidBase::pasteUrl(
    pipetteTestsUrl,
    "rnaseq_counts.rds",
    protocol = "none"
)
print(url)
x <- loadRemoteData(url)
print(x)

acidgenomics/r-pipette documentation built on Jan. 17, 2024, 4:30 p.m.