This function update the initial estimates from a model using the final estimates from a model result file. Currently this function assumes all models were submitted using shinyMixR opposed to vanilla nlmixr

update_inits(mod, res, out)

Arguments

mod

character with the entire model function included

res

character with the path to the model result RDS which holds the final estimated

out

character with the path for the updated model to save

Value

nothing will be returned the function saves the updated model to disk

Author

Richard Hooijmaijers

Examples


if (FALSE) {
  update_inits(readLines("run2.r"),"shinyMixR/run2.res.rds","run3.r")
}