bump_model_number {pharmr} | R Documentation |
bump_model_number
Description
If the model name ends in a number increase it
If path is set increase the number until no file exists with the same name in path. If model name does not end in a number do nothing.
Usage
bump_model_number(model, path = NULL)
Arguments
model |
(Model) Pharmpy model object |
path |
(str (optional)) Default is to not look for files. |
Value
(Model) Pharmpy model object
Examples
## Not run:
model <- load_example_model("pheno")
model <- model$replace(name="run2")
model <- bump_model_number(model)
model$name
## End(Not run)
[Package pharmr version 1.0.1 Index]