Package: odin 1.5.12

odin: ODE Generation and Integration
Generate systems of ordinary differential equations (ODE) and integrate them, using a domain specific language (DSL). The DSL uses R's syntax, but compiles to C in order to efficiently solve the system. A solver is not provided, but instead interfaces to the packages 'deSolve' and 'dde' are generated. With these, while solving the differential equations, no allocations are done and the calculations remain entirely in compiled code. Alternatively, a model can be transpiled to R for use in contexts where a C compiler is not present. After compilation, models can be inspected to return information about parameters and outputs, or intermediate values after calculations. 'odin' is not targeted at any particular domain and is suitable for any system that can be expressed primarily as mathematical expressions. Additional support is provided for working with delays (delay differential equations, DDE), using interpolated functions during interpolation, and for integrating quantities that represent arrays.
Authors:
odin_1.5.12.tar.gz
odin_1.5.12.zip(r-4.7)odin_1.5.12.zip(r-4.6)odin_1.5.12.zip(r-4.5)
odin_1.5.12.tgz(r-4.6-any)odin_1.5.12.tgz(r-4.5-any)
odin_1.5.12.tar.gz(r-4.7-any)odin_1.5.12.tar.gz(r-4.6-any)
odin_1.5.12.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
odin/json (API)
NEWS
| # Install 'odin' in R: |
| install.packages('odin', repos = c('https://fastverse.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mrc-ide/odin/issues
Last updated from:d8ff02081c. Checks:7 NOTE, 2 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 154 | ||
| source / vignettes | OK | 188 | ||
| linux-release-x86_64 | NOTE | 125 | ||
| macos-release-arm64 | NOTE | 88 | ||
| macos-oldrel-arm64 | NOTE | 85 | ||
| windows-devel | NOTE | 133 | ||
| windows-release | NOTE | 118 | ||
| windows-oldrel | NOTE | 106 | ||
| wasm-release | OK | 104 |
Exports:can_compileodinodin_odin_buildodin_irodin_ir_deserialiseodin_js_bundleodin_js_versionsodin_optionsodin_packageodin_parseodin_parse_odin_validate
Dependencies:cinterpolatedeSolvedigestgluejsonliteR6ringwithr
debugging
Rendered fromdebugging.Rmdusingknitr::rmarkdownon May 23 2026.Last update: 2023-03-02
Started: 2023-03-02
Guide to odin docs
Rendered fromguide.Rmdusingknitr::rmarkdownon May 23 2026.Last update: 2023-08-09
Started: 2023-08-09
odin
Rendered fromodin.Rmdusingknitr::rmarkdownon May 23 2026.Last update: 2023-05-03
Started: 2016-03-09
odin discrete models
Rendered fromdiscrete.Rmdusingknitr::rmarkdownon May 23 2026.Last update: 2022-10-26
Started: 2018-03-01
odin functions
Rendered fromfunctions.Rmdusingknitr::rmarkdownon May 23 2026.Last update: 2022-10-26
Started: 2020-05-26
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Test if compilation is possible | can_compile |
| Create an odin model | odin odin_ |
| Build an odin model generator from its IR | odin_build |
| Return detailed information about an odin model | odin_ir |
| Deserialise odin's IR | odin_ir_deserialise |
| Create a bundle of an odin model | odin_js_bundle |
| Report JS versions | odin_js_versions |
| Odin options | odin_options |
| Create odin model in a package | odin_package |
| Parse an odin model | odin_parse odin_parse_ |
| Validate an odin model | odin_validate |
