Description Usage Arguments Details Value Note Author(s) See Also
Functions for uploading and downloading files using the libcurl library that is part of RCurl.
1 2 3 4 5 | synapseDownloadFile(url, checksum, curlHandle = getCurlHandle(), cacheDir = synapseCacheDir(), opts = .getCache("curlOpts"))
synapseDownloadFileToDestination(url, destfile, checksum, curlHandle = getCurlHandle(), opts = .getCache("curlOpts"))
synapseUploadFile(url, srcfile, checksum, contentType =
"application/binary", method = "curl", quiet = FALSE,
mode = "w", cacheOK = TRUE)
|
url |
url of the remote file |
srcfile |
local file to upload |
checksum |
checksum of the local file |
curlHandle |
curlHandle for the request |
cacheDir |
local file cache directory where downloaded files will be stored |
opts |
curl options |
destfile |
local file location |
method |
method to be used for transfer. currently only "curl" is supported. |
quiet |
boolean indicated whether function should print output to stdout |
mode |
mode of the file |
cacheOK |
boolean controlling cache |
contentType |
content type |
These functions bypass R's memory using c curlWriter and curlReader functions.
synapseDownloadFile returns a list of the files that were downloaded
This is an internal method and should not be called by the user
Matt Furia
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.