Open markbneal opened 2 years ago
Some other items that make it difficult to run the examples.
A link for data provides a csv, but it does not have DUR and CMT fields, which are later required.
data <- readr::read_csv("C:/Rpackages/mrgsolve/data/Simulated_DatasetMeropenem.csv", na = '.')
Also the C ID
column needs to be renamed to ID, and the RATE NAs need to be changed to zero?
I couldn't find meropenum_pk.cpp, but did find meropenum.cpp (https://raw.githubusercontent.com/metrumresearchgroup/page-2018-mrgsolve/master/model/meropenem.cpp). Downloading that to the relevant directory reads ok, but combining with the data fails, as CMT is missing.
Error: event record cmt must be between 1 and 2:
ID: 1, row: 1, cmt: 0, evid: 1
I downloaded mrgsolver from CRAN, and tried to run the examples here: https://github.com/metrumresearchgroup/r-pharma-pkpd-2020/blob/master/content/get-started.Rmd I modified this:
mod <- mread("azithro-single", project = "model")
...to add my path:mod <- mread("azithro-single", project = "C:/Rpackages/mrgsolve/models")
and no joy.Error: the model file azithro-single.cpp does not exist.
azithro-single.cpp is missing.I found this file, which looks similar, but is not exactly the same, and used it instead. https://raw.githubusercontent.com/metrumresearchgroup/page-2018-mrgsolve/master/model/azithro.cpp