enw_unset_cache: Unset Stan cache location

View source: R/model-tools.R

enw_unset_cacheR Documentation

Unset Stan cache location

Description

Optionally removes the enw_cache_location environment variable from the user .Renviron file and/or removes it from the local environment. If you unset the local cache and want to switch back to using the persistent cache, you can reload the .Renviron file using readRenviron("~/.Renviron").

Usage

enw_unset_cache(type = c("session", "persistent", "all"))

Arguments

type

A character string specifying the type of cache to unset. It can be one of "session", "persistent", or "all". Default is "session". "session" unsets the cache for the current session, "persistent" removes the cache location from the user’s .Renviron file,and "all" does all options.

Value

The prior cache location, if it existed otherwise NULL.

See Also

Functions used to help convert models into the format required for stan enw_formula_as_data_list(), enw_get_cache(), enw_model(), enw_pathfinder(), enw_priors_as_data_list(), enw_replace_priors(), enw_sample(), enw_set_cache(), enw_stan_to_r(), remove_profiling(), write_stan_files_no_profile()

Examples


enw_unset_cache()


seabbs/epinowcast documentation built on July 27, 2024, 1:33 p.m.