fc_download_data | R Documentation |
By default this function will check for an up to date local version of the
remote file using the download.file.wcheck
function.
fc_download_data( url, type = c("data", "db", "bigmat", "ff"), overwrite = getOption("flycircuit.remote_overwrite"), ... )
url |
the location of the remote file. |
type |
the type of file (data, db, or bigmat). |
overwrite |
whether to overwrite an existing file. If |
... |
additional arguments passed to download.file (e.g. quiet). |
The default value for the overwrite
argument can be changed
by setting options('flycircuit.remote_overwrite')
to TRUE
or
FALSE
. Setting this to FALSE
may be useful if checking the
headers of the remote files takes too long.
The path to the downloaded file.
download.file.wcheck
## Not run: fc_download_data("http://myurl.com/data", quiet=TRUE) fc_download_data("http://myurl.com/data.ff", type='ff') fc_download_data("http://myurl.com/data.desc", type='bigmat') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.