downloadFileLocal {glmSparseNet} | R Documentation |
In case of new call it uses the temporary cache instead of downloading again.
downloadFileLocal(urlStr, oD = tempdir())
urlStr |
url of file to download |
oD |
temporary directory to store file |
Inspired by STRINGdb Bioconductor package, but using curl as file may be too big to handle.
path to file
glmSparseNet:::downloadFileLocal( 'https://string-db.org/api/tsv-no-header/version')