cache_gz: cache_gz

View source: R/functions_file_helpers.R

cache_gzR Documentation

cache_gz

Description

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.

Usage

cache_gz(x, path)

Arguments

x

a BiocFileCache cache

path

url or path to gzipped resource

rname

rname for gzipped resource

Details

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

Value

path to gunzipped resource in cache


jrboyd/ssvRecipes documentation built on May 22, 2022, 7:07 a.m.