synDownloader | R Documentation |
Function creates and returns a downloader for files on Synapse.
synDownloader(dloc, ..., .cache = FALSE)
dloc |
Path to a local folder where downloaded files will be stored |
... |
Additional arguments to be passed to synapser::synGet() |
.cache |
Save files into directories inside dloc corresponding to their md5 hashes. Repeated requests for identical files will re-use already downloaded files |
A downloader is itself a function that accepts a vector or list of character strings. Any recognized Synapse IDs get downloaded to the local folder specified by dloc. The downloader then returns local paths to these files. Strings not recognized to be valid Synapse IDs are returned as is.
Download specific versions of files stored on Synapse by suffixing the ID with a version number, e.g. syn123.5
A downloader function that recognizes synapse IDs and downloads the associated files.
## Not run: syn <- synDownloader( "/data", ifcollision="overwrite.local" ) syn( "syn15663039", "localFile.csv" ) # [1] "/data/mtcars.csv" "localFile.csv" ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.