View source: R/vfb_stack_downloads.R
download_gmr_stacks | R Documentation |
Download the registered GMR stacks for given ids
download_gmr_stacks(
ids,
download.dir = getOption("vfbr.stack.downloads"),
Force = FALSE,
...
)
ids |
Character vector of GMR ids specified in any way |
download.dir |
The download directory |
Force |
Whether to force the download. |
... |
Additional arguments passed to |
Note that the downloading tries to be a little bit clever, by
wrapping the download.file
call in a try expression in case it
fails
caching the download.file
call so if the destination file
already exists it will not re-download the file.
If caching gives you unexpected behaviour, you can set Force=TRUE
.
Named character vector of paths to downloaded files
gmr_stack_urls_for_ids
## Not run:
stacks=download_gmr_stacks(c('9A09', '95H11'))
stacks
# on Mac and Windows systems, this will open in the default application
# e.g. Fiji/ImageJ if you have associated ".nrrd" files
open_stack<-function(x) system(paste("open", paste(shQuote(x), collapse = " ")))
open_stack(stacks)
# open the downloads directory in the Finder/Windows Explorer
open_stack(getOption('vfbr.stack.downloads'))
# Set the package option to control where files are downloaded
# see also ?vfbr
option(vfbr.stack.downloads="/path/to/my/stacks/folder")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.