Learn R Programming

pharmr (version 1.4.0)

bump_model_number: 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)

Value

(Model) Pharmpy model object

Arguments

model

(Model) Pharmpy model object

path

(str (optional)) Default is to not look for files.

Examples

Run this code
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