Learn R Programming

mrgsolve (version 1.5.1)

render: Render a model to a document

Description

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

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

Run the code above in your browser using DataLab