Skip to content

odin

1.2.7

ODE Generation and Integration

1packages depend
18Kdownloads / year
51.2%test coverage
13/13checks pass

Overview

About
Maintained by Rich FitzJohnFirst published 2019-07-028 releasesCRAN page ↗GitHub ↗

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.8 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.00
51.2%
Coverage · measured lines
100%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,182 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
44%
References docs
0%

Downloads

18K
CRAN downloads in the past year
Rank #3,579 · ~49/day · ~1.5K/mo
Daily download trend is not available in this view yet.
52230 days
2.7K90 days
18K1 year
Compare downloads with other packages →
Also on206 r2u18 autocran52 c2d4u

Repository

Repository
106Stars
11Forks
77Open issues
2Open PRs
44Releases
1,557Commits
8Contributors
infrastructure
1,557 commits · Last activity 2026-01-15 · 0% stars, 30d

Stars over time

2024-11-25 · 1052026-07-07 · 106

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
Lint, format, editor (1)
lintr
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor
Copyright holders (1)
Package Timeline

8 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 1.2.7Latest
    2025-02-07 · current release · diff ↗
  • 1.2.6
    2024-09-23 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.2.5
    2023-10-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2.4
    2022-04-28 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.1
    2021-07-14 · diff ↗
  • 1.2.0
    2021-07-07 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.8
    2020-10-28 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.1
    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
Installed size
not tracked yet
With dependencies
not tracked yet

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 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.

APA

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

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.

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