get_model_directory.RdGets or sets options('rbabylon.model_directory'),
which is used by default in functions like read_model(), submit_model() and model_summary() so that,
once this is set, those functions can take a path relative to this directory instead of the working/script directory.
get_model_directory() set_model_directory(.path)
| .path | Path, either from working directory or absolute, that will be set as |
|---|
set_model_directory() sets options('rbabylon.model_directory') to the absolute path of the directory passed to .path.
Note that the directory must exist or this will error.
get_model_directory() gets the path set to options('rbabylon.model_directory') and checks that it is both absolute and exists,
erroring if it is not.