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.
1 | safe_read_model(.yaml_path, .directory = get_model_directory())
|
.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()'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.