is_cached: Check if text is cached

View source: R/utils-cache.R

is_cachedR Documentation

Check if text is cached

Description

This boils down to check if the hash exists at the caching dir as a file.

Usage

is_cached(text, transformers, more_specs, cache_dir = get_cache_dir())

Arguments

text

Passed to cache_make_key() to generate a key.

transformers

Passed to cache_make_key() to generate a key.

more_specs

Passed to cache_make_key() to generate a key.

cache_dir

The caching directory relative to the .Rcache root to look for a cached value.


styler documentation built on Aug. 29, 2023, 5:10 p.m.