file_cache: Cache a file if it is not found locally

Description Usage Arguments Value Examples

View source: R/rutils.R

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

1
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

1
2
3
4
5
6
7
8
rec_url <- recount::download_study(
    project = "SRP012682",
    type = "samples",
    download = FALSE
)

eg_bwfile <- file_cache(rec_url[1])
eg_bwfile

eolagbaju/ODER documentation built on Dec. 20, 2021, 5:21 a.m.