safe_read_model: Read in model YAML with error handling

Description Usage Arguments

View source: R/run-log.R

Description

Helper function that tries to call 'read_model()' on a yaml path and returns NULL, with no error, if the YAML is not a valid model file.

Usage

1
safe_read_model(.yaml_path, .directory = get_model_directory())

Arguments

.yaml_path

Path to read model from

.directory

Model directory which ‘.yaml_path' is relative to. Defaults to 'options(’rbabylon.model_directory')', which can be set globally with 'set_model_directory()'.


metrumresearchgroup/mrgvalidatetestreference documentation built on Aug. 15, 2021, 8:13 a.m.