bump_model_number function

bump_model_number

bump_model_number

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)

Arguments

  • model: (Model) Pharmpy model object
  • path: (str (optional)) Default is to not look for files.

Returns

(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)
  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04