downloadFileLocal: Download files to local temporary path

View source: R/download.R

downloadFileLocalR Documentation

Download files to local temporary path

Description

In case of new call it uses the temporary cache instead of downloading again.

Usage

downloadFileLocal(urlStr, oD = tempdir())

Arguments

urlStr

url of file to download

oD

temporary directory to store file

Details

Inspired by STRINGdb Bioconductor package, but using curl as file may be too big to handle.

Value

path to file

Examples

glmSparseNet:::downloadFileLocal(
    "https://string-db.org/api/tsv-no-header/version"
)

sysbiomed/glmSparseNet documentation built on Feb. 17, 2024, 1:38 p.m.