View source: R/ir_deserialise.R
odin_ir_deserialise | R Documentation |
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.
odin_ir_deserialise(x)
x |
An intermediate representation as a json string |
A named list
odin_parse
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.