Download and cache a file
Arguments
- url
character(1)
. Uniform Resource Locator (URL).- pkg
character(1)
. Package name.- update
logical(1)
. Callbfcneedsupdate
internally to see if URL needs an update. Doesn't work reliably for all servers, so disabled by default.- ask
logical(1)
. Ask if package cache needs to be created or if file needs to be updated.- verbose
logical(1)
. Run the function with verbose output.
Details
Caching requires BiocFileCache and tools packages to be installed. If BiocFileCache is not installed, URL will be downloaded as a temporary file instead.