odin_ir: Return detailed information about an odin model

Description Usage Arguments Warning Examples

View source: R/interface.R

Description

Return detailed information about an odin model. This is the mechanism through which coef works with odin.

Usage

1
odin_ir(x, parsed = FALSE)

Arguments

x

An odin_generator function, as created by odin

parsed

Logical, indicating if the representation should be parsed and converted into an R object. If FALSE we return a json string.

Warning

The returned data is subject to change for a few versions while I work out how we'll use it.

Examples

1
2
3
4
5
6
exp_decay <- odin::odin({
  deriv(y) <- -0.5 * y
  initial(y) <- 1
}, target = "r")
odin::odin_ir(exp_decay)
coef(exp_decay)

richfitz/odin documentation built on July 21, 2020, 7:43 p.m.