submit_models.RdSubmits a group of models to be run in batch by calling out to bbi in as few external calls as possible (see "Details").
submit_models( .mods, .bbi_args = NULL, .mode = c("sge", "local"), ..., .config_path = file.path(get_model_directory() %||% ".", "babylon.yaml"), .wait = TRUE, .dry_run = FALSE, .directory = NULL ) # S3 method for list submit_models( .mods, .bbi_args = NULL, .mode = c("sge", "local"), ..., .config_path = file.path(get_model_directory() %||% ".", "babylon.yaml"), .wait = TRUE, .dry_run = FALSE, .directory = NULL ) # S3 method for character submit_models( .mods, .bbi_args = NULL, .mode = c("sge", "local"), ..., .config_path = file.path(get_model_directory() %||% ".", "babylon.yaml"), .wait = TRUE, .dry_run = FALSE, .directory = get_model_directory() ) # S3 method for numeric submit_models( .mods, .bbi_args = NULL, .mode = c("sge", "local"), ..., .config_path = file.path(get_model_directory() %||% ".", "babylon.yaml"), .wait = TRUE, .dry_run = FALSE, .directory = get_model_directory() )
| .mods | The model object to submit. Could be
a list of |
|---|---|
| .bbi_args | A named list specifying arguments to pass to babylon formatted like |
| .mode | Either |
| ... | args passed through to |
| .config_path | Optionally specify a path to a babylon.yml config. If not specified, the config in the model directory will be used by default. Path MUST be either an absolute path or relative to the model directory. |
| .wait | If |
| .dry_run | Returns an object detailing the command that would be run, insted of running it. This is primarily for testing but also a debugging tool. |
| .directory | Model directory which |
The number of bbi calls to make is determined by the number of distinct sets of bbi arguments passed to the submission calls,
either explicitly through .bbi_args, as specified in the bbi_args field of the model YAML, or specified globally in babylon.yml.
list: Takes a list of bbi_nonmem_model objects.
character: Takes a character vector of file paths to models that can be loaded with read_model().
Should be a vector of paths to YAML (with or without .yaml extension), or valid model files (control stream, etc.).
numeric: Takes a numeric vector of integers corresponding to file names of models that can be loaded with read_model().
This will only work if you are calling from the same directory as the models, or if you have set options('rbabylon.model_directory') to the directory constaining the relevant model.