Learn R Programming

rbmi (version 1.5.1)

clear_model_cache: 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"))

Value

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

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.