rxode2: Facilities for Simulating from ODE-Based Models

Facilities for running simulations from ordinary differential equation ('ODE') models, such as pharmacometrics and other compartmental models. A compilation manager translates the ODE model into C, compiles it, and dynamically loads the object code into R for improved computational efficiency. An event table object facilitates the specification of complex dosing regimens (optional) and sampling schedules. NB: The use of this package requires both C and Fortran compilers, for details on their use with R please see Section 6.3, Appendix A, and Appendix D in the "R Administration and Installation" manual. Also the code is mostly released under GPL. The 'VODE' and 'LSODA' are in the public domain. The vendored 'SUNDIALS' 'CVODE' sources and headers are released under the BSD-3-Clause license. The information is available in the inst/COPYRIGHTS.

Version: 5.1.5
Depends: R (≥ 4.1.0)
Imports: PreciseSums (≥ 0.7), Rcpp (≥ 0.12.3), RcppParallel, backports, cli (≥ 2.0.0), checkmate, ggplot2 (≥ 3.4.0), inline, lotri (≥ 1.0.4), memoise, methods, mirai, rex, sys, tools, utils, dparser (≥ 1.3.1-12), qs2, rxode2ll, data.table (≥ 1.12.4), vctrs, stats
LinkingTo: sitmo, lotri (≥ 1.0.0), PreciseSums (≥ 0.7), Rcpp, RcppArmadillo (≥ 0.9.300.2.0), BH, RcppParallel, RcppEigen (≥ 0.3.3.9.2), dparser (≥ 1.3.1-12), StanHeaders (≥ 2.21.0.7)
Suggests: Matrix, DT, covr, crayon, curl, digest, dplyr (≥ 0.8.0), ggrepel, gridExtra, htmltools, knitr, learnr, microbenchmark, nlme, remotes, rlang, rmarkdown, scales, shiny, stringi, symengine, testthat, tidyr, usethis, withr, xgxr, pillar, tibble, units (≥ 0.6-0), rsconnect, devtools, patchwork, nlmixr2data, lifecycle, kableExtra, pmxTools, rootSolve, arrow, fst, duckdb, DBI
Published: 2026-07-28
DOI: 10.32614/CRAN.package.rxode2
Author: Matthew L. Fidler ORCID iD [aut, cre], Wenping Wang [aut], Aaron Collier [ctb] (SUNDIALS/CVODE), Alan Hindmarsh [ctb], Arun Srinivasan [ctb], Ashley Crawford [ctb] (SUNDIALS/CVODE), Awad H. Al-Mohy [ctb], Bill Denney ORCID iD [ctb], Cleve Moler [ctb], Cody J. Balos [ctb] (SUNDIALS/CVODE), Dan Shumaker [ctb] (SUNDIALS/CVODE), Daniel Kaschek [ctb], Daniel R. Reynolds [ctb] (SUNDIALS/CVODE), David Cooley [ctb], David J. Gardner [ctb] (SUNDIALS/CVODE), Drew Schmidt [ctb], Ernst Hairer [ctb], Gabriel Staples [ctb], Gerhard Wanner [ctb], Gilbert Stewart [ctb], Goro Fuji [ctb], Hadley Wickham [ctb], Hidde van de Beek [ctb], Igor Kushnir [ctb], Imperial College of Science, Technology and Medicine [cph], Jack Dongarra [ctb], Jacob Williams [ctb], Jim Bunch [ctb], Karline Soetaert [ctb], Kevin Ushey [ctb], Lawrence Livermore National Security [cph] (SUNDIALS/CVODE), Linda Petzold [ctb], Mark M. Baum [ctb], Martin Maechler [ctb], Matt Dowle [ctb], Matteo Fasiolo [ctb], Melissa Hallow [aut], Michel Lang [ctb], Morwenn [ctb], Nicholas J. Higham [ctb], Omar Elashkar [ctb], Peter N. Brown [ctb], Radu Serban [ctb] (SUNDIALS/CVODE), Rich FitzJohn [ctb], Richard Upton [ctb], Roger B. Sidje [ctb], Scott D. Cohen [ctb] (SUNDIALS/CVODE), Simon Frost [ctb], Slaven Peles [ctb] (SUNDIALS/CVODE), Southern Methodist University [cph] (SUNDIALS/CVODE), Thomas Petzoldt [ctb], University of Maryland Baltimore County [cph] (SUNDIALS/CVODE), Wes Hinsley [ctb], Woodrow Setzer [ctb], Yu Feng [ctb], Zufar Mulyukov [ctb]
Maintainer: Matthew L. Fidler <matthew.fidler at gmail.com>
BugReports: https://github.com/nlmixr2/rxode2/issues/
License: GPL (≥ 3)
Copyright: see file COPYRIGHTS
URL: https://nlmixr2.github.io/rxode2/, https://github.com/nlmixr2/rxode2/
NeedsCompilation: yes
Language: en-US
Citation: rxode2 citation info
Materials: README, NEWS
In views: DifferentialEquations, HighPerformanceComputing, MixedModels, Pharmacokinetics
CRAN checks: rxode2 results

Documentation:

Reference manual: rxode2.html , rxode2.pdf
Vignettes: rxode2 ODE solving syntax (source)

Downloads:

Package source: rxode2_5.1.5.tar.gz
Windows binaries: r-devel: rxode2_5.1.4.zip, r-release: rxode2_5.1.4.zip, r-oldrel: rxode2_5.1.4.zip
macOS binaries: r-release (arm64): rxode2_5.1.4.tgz, r-oldrel (arm64): rxode2_5.1.4.tgz, r-release (x86_64): rxode2_5.1.4.tgz, r-oldrel (x86_64): rxode2_5.1.4.tgz
Old sources: rxode2 archive

Reverse dependencies:

Reverse imports: admixr2, babelmixr2, monolix2rx, nlmixr2, nlmixr2auto, nlmixr2autoinit, nlmixr2est, nlmixr2extra, nlmixr2lib, nlmixr2plot, nlmixr2rpt, nlmixr2save, nlmixr2targets, nonmem2rx, posologyr, shinyMixR, SimuRg
Reverse linking to: babelmixr2, monolix2rx, nlmixr2est, nonmem2rx
Reverse suggests: amp.sim, campsis, ggPMX, PKbioanalysis, pmxNODE, ruminate, rxode2mrgsolvebridge, ubiquity, xpose.xtras

Linking:

Please use the canonical form https://CRAN.R-project.org/package=rxode2 to link to this page.