Unzip file before caching with BiocFileCache_database
Source:R/BiocFileCache_database_helpers.R
unzip_before_cache.Rd
This helper function is for use with BiocFileCache_database()
objects.
Using it as the
bfc_fun
input for this object will unzip a downloaded resource into a
temporary folder before storing it in the cache.
Examples
M <- BiocFileCache_database(
source = tempfile(),
resource_name = "example",
bfc_fun = unzip_before_cache
)