View source: R/functions_file_helpers.R
cache_gz | R Documentation |
Automatically handles cacheing of (potentially) gzipped resources. Resources can be local or remote (will be downloaded and cached). If resource is gzipped (only if ends in .gz) a gunzipped version will be added to cache.
cache_gz(x, path)
x |
a BiocFileCache cache |
path |
url or path to gzipped resource |
rname |
rname for gzipped resource |
for a given path 1. checks if it's a url and downloads, and updates to local path. 2. if path ends in .gz, gunzips and updates path
path to gunzipped resource in cache
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.