Nonlinear Mixed Effects Models in Population PK/PD
Overview
Fit and compare nonlinear mixed-effects models in differential equations with flexible dosing information commonly seen in pharmacokinetics and pharmacodynamics (Almquist, Leander, and Jirstrand 2015 doi:10.1007/s10928-015-9409-1). Differential equation solving is by compiled C code provided in the 'rxode2' package (Wang, Hallow, and James 2015 doi:10.1002/psp4.12052).
nlmixr2CheckInstall()no longer fails when the repositories cannot be queried for package updates. Both an unreachable repository and an error fromutils::old.packages()itself (seen on Windows, wherepkgTypeis"both"and R's internal.available.both()can fail with "subscript out of bounds" when the source and binary indexes disagree) are now reported as "updates could not be checked" instead of stopping the check.nlmixr2CheckInstall()messages are escaped before they are handed tocli, so paths or command output containing{or}are shown literally rather than being interpreted asglueexpressions.
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-03
- ERROR11 OK, 2 ERROR2026-09-12
- OK13 OK2026-08-12
- ERROR10 OK, 1 NOTE, 2 ERROR2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
Show 27 earlier changesHide 27 earlier changes
- OK13 OK2026-07-23
- ERROR12 OK, 1 ERROR2026-07-21
- OK13 OK2026-07-18
- ERROR12 OK, 1 ERROR2026-07-14
- OK13 OK2026-07-13
- ERROR12 OK, 1 ERROR2026-07-10
- OK13 OK2026-07-07
- ERROR12 OK, 1 ERROR2026-06-30
- OK13 OK2026-06-29
- ERROR12 OK, 1 ERROR2026-06-25
- OK13 OK2026-06-24
- ERROR12 OK, 1 ERROR2026-06-16
- OK13 OK2026-06-15
- ERROR12 OK, 1 ERROR2026-06-11
- OK13 OK2026-06-09
- ERROR11 OK, 2 ERROR2026-06-08
- OK13 OK2026-06-06
- ERROR12 OK, 1 ERROR2026-06-01
- OK13 OK2026-05-29
- ERROR12 OK, 1 ERROR2026-05-27
- OK13 OK2026-05-10
- ERROR12 OK, 1 ERROR2026-05-08
- OK13 OK2026-05-04
- ERROR12 OK, 1 ERROR2026-04-28
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-15
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 6 (1 internal)
- Examples that run
- 75%3 run in a plain check · 1 never run
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 33%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 87%
- Median days to close, 50 most recently updated closed issues
- 2
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
8 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/nlmixr2/nlmixr2 on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-20 · The repository has a site deploy workflow
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-07-08Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 64 crediting it in the message
- Claude Opus 4.829 commits · Jul 2026
- Claude Opus 527 commits · Jul to Aug 2026
- Claude Fable 58 commits · Jul 2026
Dependencies
Installing nlmixr2 adds 140 packages (89 with compiled code, 113 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.
Code & Tests
People & History
Show 2 more contributorsHide 2 contributors
Show 3 peopleHide 3 people
Pick two releases to compare their code metrics.
- 7.0.1Latest
- RR 4.6.0 released · 2026-04-24
- 5.0.02025-11-30 · diff ↗
- 4.0.12025-08-29 · diff ↗
- 4.0.02025-07-17 · diff ↗ ·
removed 97 exports
%>%, ini<-, model<-, .nlmixrNlmeFun, ACF, RxODE, VarCorr, add.dosing, add.sampling, addCwres, addNpde, addTable, augPred, bobyqaControl, bootplot, bootstrapFit, et, etExpand, eventTable, expit, fixed.effects, fixef, foceiControl, geom_amt, geom_cens, getData, getVarCov, groupedData, ini, lbfgsb3cControl and 67 moreadded 5 exports
.nlmixr2attach, nlmixr2conflicts, nlmixr2deps, nlmixr2packages, nlmixr2update - RR 4.5.0 released · 2025-04-11
- 3.0.2
- 3.0.1
- 3.0.0
- 2.1.22024-05-30 · diff ↗ ·
added 9 exports
bobyqaControl, lbfgsb3cControl, n1qn1Control, newuoaControl, nlmControl, nlminbControl, nlsControl, optimControl, uobyqaControl - RR 4.4.0 released · 2024-04-24
- 2.1.12024-02-01 · diff ↗
- 2.1.02024-01-09 · diff ↗ ·
added 6 exports
ini<-, model<-, etExpand, nlmixr2AllEst, rxFun, rxSetPipingAuto - RR 4.3.0 released · 2023-04-21
- 2.0.9
- 2.0.8
Package metadata
- First published
- 2022-05-24
- Total releases
- 14 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nlmixr2")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.