tulpa_cache_clear: Remove compiled blocks from the tgmrf_cpp() cache

View source: R/tgmrf_cpp.R

tulpa_cache_clearR Documentation

Remove compiled blocks from the tgmrf_cpp() cache

Description

Deletes cached compilation output under tulpa_cache_dir(). The cache holds build artefacts only – a removed entry is rebuilt by the next tgmrf_cpp() call on the same source – so it can be emptied at any time.

Usage

tulpa_cache_clear(older_than = 0)

Arguments

older_than

Remove only entries whose last modification is more than this many days ago. 0 (the default) removes every entry.

Value

The number of entries removed, invisibly.

See Also

tulpa_cache_dir() for the location.

Examples

# Deletes the caller's own cached builds, so it runs only in an
# interactive session.
if (interactive()) {
  tulpa_cache_clear(older_than = 30)  # keep the last 30 days
  tulpa_cache_clear()                 # empty the cache
}


tulpa documentation built on Oct. 19, 2026, 5:09 p.m.