mwrite_cpp | R Documentation |
Model code is written to a file in native mrgsolve format. This
can be useful for (1) breaking connection to NONMEM modeling outputs that
are imported by $NMXML
or $NMEXT
and (2) saving model updates (e.g.,
an updated parameter list). Models can be read back using mread()
.
mwrite_cpp(x, file, update = TRUE)
x |
a model object. |
file |
output file name; if non-character (e.g., |
update |
|
See important details in mwrite_yaml()
.
A list containing data that was written out to the cpp file, with added
item file
, is returned invisibly.
mwrite_yaml()
, yaml_to_cpp()
temp <- tempfile(fileext = ".mod")
mod <- modlib("pk1", compile = FALSE)
x <- mwrite_cpp(mod, file = temp)
mod <- mread(x$file, compile = FALSE)
mod
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.