cleanup_model {pharmr} | R Documentation |
Perform various cleanups of a model
This is what is currently done
Make model statements declarative, i.e. only one assignment per symbol
Inline all assignments of one symbol, e.g. X = Y
cleanup_model(model)
model |
(Model) Pharmpy model object |
(Model) Reference to the same model
When creating NONMEM code from the cleaned model Pharmpy might need toadd certain assignments to make it in line with what NONMEM requires.
## Not run:
model <- load_example_model("pheno")
model$statements
model <- cleanup_model(model)
model$statements
## End(Not run)