powered by
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.
bump_model_number(model, path = NULL)
(Model) Pharmpy model object
(str (optional)) Default is to not look for files.
if (FALSE) { model <- load_example_model("pheno") model <- model$replace(name="run2") model <- bump_model_number(model) model$name }
Run the code above in your browser using DataLab