clear_model_cache: Clear Model Cache

View source: R/utilities.R

clear_model_cacheR Documentation

Clear Model Cache

Description

Clears the compiled Stan model cache, keeping only the models that match the keep argument.

Usage

clear_model_cache(keep, cache_dir = getOption("rbmi.cache_dir"))

Arguments

keep

A character string that specifies which models to keep in the cache.

cache_dir

The directory where the compiled Stan models are cached. Defaults to the option rbmi.cache_dir.

Value

See unlink() for details on the return value regarding the deletion of the old model files.


rbmi documentation built on Nov. 5, 2025, 7:30 p.m.