file_cache {ODER}R Documentation

Cache a file if it is not found locally

Description

file_cache will use: BiocFileCache and will then cache the file for faster repeated retrival, if it is not found locally (i.e. a URL).

Usage

file_cache(file_path)

Arguments

file_path

a path to file of interest.

Value

file_path of cached file or unchanged file_path if found locally.

Examples

rec_url <- recount::download_study(
    project = "SRP012682",
    type = "samples",
    download = FALSE
)

eg_bwfile <- file_cache(rec_url[1])
eg_bwfile

[Package ODER version 1.0.0 Index]