metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
129 stars 36 forks source link

Clarify error message for dynamic capture of compartment #1211

Open kylebaron opened 2 months ago

kylebaron commented 2 months ago

Currently says item doesn't exist, which could be confusing. Could / should read that the compartment isn't a user-defined variable in the model.

> mod  <- mread_yaml("foo.yaml", capture = "KAi,VCi,RESP")
 - item `RESP` does not exist in model `housemodel-xport_cpp`
Error: all requested `capture` variables must exist in the model