odin_ir_deserialise {odin} | R Documentation |
Deserialise odin's IR
Description
Deserialise odin's intermediate model representation from a json string into an R object. Unlike the json, there is no schema for this representation. This function provides access to the same deserialisation that odin uses internally so may be useful in applications.
Usage
odin_ir_deserialise(x)
Arguments
x |
An intermediate representation as a json string |
Value
A named list
See Also
Examples
# Parse a model of exponential decay
ir <- odin::odin_parse({
deriv(y) <- -0.5 * y
initial(y) <- 1
})
# Convert the representation to an R object
odin::odin_ir_deserialise(ir)
[Package odin version 1.2.5 Index]