safe_read_model | R Documentation |
Private helper function that tries to call read_model()
on a model path and
returns NULL, with no error, if the path is not a valid model file. Also
wraps read_model()
in suppressMessages()
so that things like the
check_stan_model() messages will be suppressed. This is done because this
function is primarily used when mapping over a number of models and these
messages can be very annoying and mostly pointless in that context.
safe_read_model(.path)
.path |
Path to the model to read, in the sense of absolute model path. The absolute model path is the path to the YAML file and model file, both without extension, and (possibly) the output directory. |
A model object, if .path
represents a valid model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.