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).

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
#>                                                                                         BFC1 
#> "/github/home/.cache/R/BiocFileCache/3f359c4d397_SRR660824_SRS389722_SRX222703_male_lung.bw"