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.


r-lib/styler documentation built on Dec. 13, 2024, 5:42 p.m.