Skip to content

ODE Generation and Integration

1packages depend
13.9Kdownloads / year
51.2%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 3.7 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.7
READMEYes · 1,182 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · does not mention 1.2.7Citation fileNo
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

13.9K
CRAN downloads in the past year
Rank #4,155 · ~38/day · ~1.2K/mo
Daily download trend is not available in this view yet.
86930 days
2.2K90 days
13.9K1 year
Compare downloads with other packages →
Also on183 r2u7 autocran101 c2d4u

Repository

106Stars
11Forks
77Open issues
2Open PRs
44Releases
1,557Commits
8Commit identities
infrastructure
1,557 commits · Last activity 2026-01-15 · Default branch at 1.5.12, ahead of CRAN 1.2.7 (checked 2026-10-21)
Responsiveness
How these are sampled
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

2025-09-10 · 1062026-07-07 · 106
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)

GitHub Pages site last deployed 2026-01-15 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
Makefile
Show all practicesHide 2 practices
Lint, format, editor (1)
lintr
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 1.0.1 (2019)
Contributor
Releases (8)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.7Latest
    record
    2025-02-07 · current release · diff ↗
  • 1.2.6
    record
    2024-09-23 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.5
    record
    2023-10-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2.4
    record
    2022-04-28 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.1
    record
    2021-07-14 · diff ↗
  • 1.2.0
    record
    2021-07-07 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.8
    record
    2020-10-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    record
    2019-07-02
  • R
    R 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")
FitzJohn, R., Imperial College of Science, Technology and Medicine, & Jombart, T. (2025). odin: ODE Generation and Integration (Version 1.2.7) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for odin version 1.2.7 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy