For internal use
Arguments
- model.name
name of the model (see
list_models()
for options)- file.name
Optional. File name; if NULL, return path to model directory
- dir.name
Directory name for files (for local files, must be in main project directory)
- local
logical. if TRUE, use local model definition (in
models
subdirectory of main project repo). if FALSE, use package models.