Skip to contents

Define settings that modify the behaviour of the rbmi package

Each of the following are the name of options that can be set via:

options(<option_name> = <value>)

rbmi.cache_dir

Default = tools::R_user_dir("rbmi", which = "cache")

Directory to store compiled Stan models in to avoid having to re-compile. If the environment variable RBMI_CACHE_DIR has been set this will be used as the default value. Note that if you are running rbmi in multiple R processes at the same time (that is say multiple calls to Rscript at once) then there is a theoretical risk of the processes breaking each other as they attempt to read/write to the same cache folder at the same time. To avoid this potential issue it is recommended to set the cache directory to a unique folder for each R session e.g.

options("rbmi.cache_dir" = tempdir(check = TRUE))

Usage

set_options()

Examples

if (FALSE) { # \dontrun{
options(rbmi.cache_dir = "some/directory/path")
} # }