odin
1.2.7ODE Generation and Integration
Overview
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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 44%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/mrc-ide/odin on 2026-08-16.
Dependencies
Code & Tests
People & History
8 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 1.2.7Latest
- 1.2.62024-09-23 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.2.52023-10-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.2.42022-04-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.2.12021-07-14 · diff ↗
- 1.2.02021-07-07 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.0.82020-10-28 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 1.0.12019-07-02
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2019-07-02
- Total releases
- 8 / 7 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.1 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("odin")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.