ODE 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
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 9
- Examples that run
- 100%9 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 44%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 41
- Median days to close, 50 most recently updated closed PRs
- 6
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/mrc-ide/odin on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-15 · The repository has a site deploy workflow
Show all practicesHide 2 practices
Dependencies
Installing odin adds 8 packages (6 with compiled code, 3.7 MB of source tarballs). Heaviest: deSolve 1.9 MB, jsonlite 1.0 MB, ring 279 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("odin")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.