mkinsub(submodel, to = NULL, sink = TRUE, full_name = NA)
mkinmod
for the list of allowed submodel names.
This is a convenience function to set up the lists used as arguments for
mkinmod
.
mkinmod
.
# One parent compound, one metabolite, both single first order. SFO_SFO <- mkinmod( parent = list(type = "SFO", to = "m1"), m1 = list(type = "SFO"))Successfully compiled differential equation model from auto-generated C code.# The same model using mkinsub SFO_SFO.2 <- mkinmod( parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO"))Successfully compiled differential equation model from auto-generated C code.# Now supplying full names SFO_SFO.2 <- mkinmod( parent = mkinsub("SFO", "m1", full_name = "Test compound"), m1 = mkinsub("SFO", full_name = "Metabolite M1"))Successfully compiled differential equation model from auto-generated C code.