Skip to contents

Render a model to a document

Usage

render(x, ...)

# S4 method for character
render(x, project = NULL, ...)

# S4 method for mrgmod
render(x, ...)

dorender(model, project, template = NULL, compile = TRUE, ...)

Arguments

x

model object or the model name

...

passed to rmarkdown::render

project

the directory containing the .cpp model file

model

model name

template

template document

compile

logical; if true, the model will be compiled to run

Examples

if (FALSE) {
mod <- mrgsolve::house()
mrgsolve:::render(mod)
mrgsolve:::render("irm2", modlib())
}