nlmixr2est
7.2.1Nonlinear Mixed Effects Models in Population PK/PD, Estimation Routines
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).
Bug fixes
- The Gill (1983) finite-difference step search now floors its estimate of the error in the objective at
gillRtol(max(|f|, 1) * gillRtol), so an objective near 0 no longer shrinks the steps to roundoff. This fixed thenlmixr2GradFun()example erroring with a zero gradient on macOS and linux-arm64. A search that accepts an interval with zero curvature (f locally linear) now keeps its starting interval instead of an infinite one, and a search that ends as "Odd/Linear Grad" reports the central difference at its starting interval rather than at its last, largest trial step. - A test compared the C++ damped-BFGS update bitwise with the former R one; it now allows for rounding differences (failed on CRAN's noLD check).
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-15
- ERROR12 OK, 1 ERROR2026-09-15
- OK13 OK2026-08-12
- ERROR7 OK, 4 NOTE, 2 ERROR2026-07-23
- NOTE11 OK, 2 NOTE2026-07-16
Show 4 earlier changesHide 4 earlier changes
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
- NOTE11 OK, 3 NOTE2026-03-10
Documentation
- Help pages
- 186 (76 internal)
- Examples that run
- 61%43 run in a plain check · 22 only when donttest examples are enabled (R CMD check --as-cran) · 4 never run · 2 hold no code
- Exported functions with examples
- 40%
- Documented parameters
- 97%
- Return-value docs
- 98%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- 92%
- Median days to close, 50 most recently updated closed issues
- 1
- Median days to close, 50 most recently updated closed PRs
- 2
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
14 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/nlmixr2/nlmixr2est on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-10 · The repository has a site deploy workflow
pkgdown site last built 2026-10-10, before release 7.2.1 (2026-10-14)
Show all practicesHide 3 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-12-06Seen in the repository: .github/copilot-instructions.mdPull request: opened by its own accountCommits: 25 by its own account · at least 4 crediting it in the message
- Claude Codefirst seen 2026-03-27Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 1,630 crediting it in the message
- Antigravityfirst seen 2026-05-13Named in .Rbuildignore: .antigravityNamed in .gitignore: .antigravity
- Augment Codefirst seen 2026-05-30Named in .Rbuildignore: .augmentNamed in .gitignore: .augment
- Continuefirst seen 2026-05-30Named in .Rbuildignore: .continueNamed in .gitignore: .continue
- Kilo Codefirst seen 2026-05-30Named in .Rbuildignore: .kilocodeNamed in .gitignore: .kilocode
- Kiro, Amazon Q's successorfirst seen 2026-05-30Named in .Rbuildignore: .kiroNamed in .gitignore: .kiro
- Windsurf, now Devin Desktopfirst seen 2026-05-30Named in .Rbuildignore: .windsurfNamed in .gitignore: .windsurf
- Cursorfirst seen 2026-07-01Named in .gitignore: .cursor
- Claude CodePull requests: 36 from outside contributors, first on 2026-06-08, 6 from forks
- Claude Opus 4.8121 commits · Jun to Jul 2026
- Claude Opus 4.730 commits · Apr to Jun 2026
- Claude Fable 523 commits · Jun to Jul 2026
- Claude Sonnet 520 commits · Jun to Jul 2026
- Claude Sonnet 4.66 commits · Mar to Jun 2026
Some of these counts are a minimum, because the search stopped before the oldest commits.
Dependencies
Installing nlmixr2est adds 65 packages (41 with compiled code, 68 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.
Show all 18 packagesHide all 18 packages
Code & Tests
Datasets
People & History
Show 7 more contributorsHide 7 contributors
Pick two releases to compare their code metrics.
- 7.2.1Latest
- 7.2.0
- 7.1.02026-09-20 · diff ↗ ·
removed 1 export
.nlmixr2objectNameAssignadded 17 exports
setCov<-, .nlmixr2estFoceiPtrs, .nlmixr2estLikContribPtrs, .nlmixr2estNlmPtrs, foceiLikIterPrintEnd, foceiLikIterPrintStart, impCovControl, nlmObjectiveSetup, nlmUnscalePar, registerEstInterceptor, removeEstInterceptor, rsControl, saControl, setCovAllMethods, setCovOptions, setCovValue, trustControl - 7.0.22026-08-04 · diff ↗ ·
added 47 exports
.absorbIterPrintControl, .loadSymengine, .nlmFamilyControlGeneric, .nlmFamilyFitGeneric, .nlmeGetNonMuRefNames, .nlmixr0preProcessNpMuExpand, .preProcessLinCmtOde, .preProcessVaeNonMuTheta, .preProcessZeroTheta, .sensEtaOrTheta, emviControl, fbviControl, foceiGradPooledDirect_, foceiGradPooledSetupLoad_, foceiLikLoad, foceiLikRun, foceiLikUnload, focepControl, formatMinWidth, iagqControl, ifoceControl, ifoceiControl, ifocepControl, ilaplaceControl, impControl, impmapControl, iterPrintControl, magqControl, mfoceControl, mfoceiControl and 17 more - 6.0.12026-06-03 · diff ↗
- 6.0.02026-05-31 · diff ↗ ·
removed 1 export
%>%added 9 exports
.nlmFamilyAdjustOutput, .uiApplyMu2hook, aaaCranNlmixrThreads, postFinalObjectHooks, postFinalObjectHooksAdd, postFinalObjectHooksRm, preFinalParTableHooks, preFinalParTableHooksAdd, preFinalParTableHooksRm - RR 4.6.0 released · 2026-04-24
- 5.0.22025-11-28 · diff ↗
- 4.1.12025-10-09 · diff ↗ ·
added 11 exports
.downgradeEtas, .iniS3, nlmixr2iovLogsdCv, nlmixr2iovLogsdSd, nlmixr2iovLogvarCv, nlmixr2iovLogvarSd, nlmixr2iovSdCv, nlmixr2iovSdSd, nlmixr2iovVarCv, nlmixr2iovVarSd, rmEta - 4.1.02025-08-29 · diff ↗ ·
added 10 exports
.agq, .collectWarn, .nlmAdjustCov, .nlmixr2FitUpdateParams, agqControl, foControl, foceControl, foiControl, laplaceControl, posthocControl - 4.0.2
- 4.0.12025-07-20 · diff ↗
- 4.0.0
- RR 4.5.0 released · 2025-04-11
- 3.0.42025-02-19 · diff ↗
- 3.0.32025-01-18 · diff ↗
Show 21 earlier eventsHide 21 earlier events
- 3.0.22024-11-23 · diff ↗ ·
added 6 exports
.nlmixrPreprocessLiteralFix, .preProcessDataUi, .preProcessZeroOmega, preProcessHooks, preProcessHooksAdd, preProcessHooksRm - 3.0.12024-10-23 · diff ↗
- 3.0.02024-09-18 · diff ↗ ·
removed 6 exports
.popedFree, .popedSetup, .popedSolveIdME, .popedSolveIdME2, .popedSolveIdN, .popedSolveIdN2added 4 exports
.addPkgNlmixr2, .deparseDifferent, .deparseFinal, rxUiDeparse - 2.2.22024-05-28 · diff ↗ ·
added 6 exports
.popedFree, .popedSetup, .popedSolveIdME, .popedSolveIdME2, .popedSolveIdN, .popedSolveIdN2 - RR 4.4.0 released · 2024-04-24
- 2.2.12024-01-31 · diff ↗
- 2.2.02023-12-12 · diff ↗ ·
added 27 exports
.nlmFinalizeList, .nlmFreeEnv, .nlmSetupEnv, .nlmixrNlmFunC, .nlmixrNlminbFunC, .nlmixrNlminbGradC, .nlmixrNlminbHessC, .nlmixrNlsData, .nlmixrNlsFun, .nlmixrNlsFunGrad, .nlmixrNlsFunVal, .nlmixrNlsFunValGrad, .nlmixrOptimFunC, .nlmixrOptimGradC, .uiApplyMu2, .uiFinalizeMu2, as.rxUi, bobyqaControl, lbfgsb3cControl, n1qn1Control, newuoaControl, nlmControl, nlminbControl, nlsControl, optimControl, rxGetDistributionNlsLines, uobyqaControl - 2.1.82023-10-08 · diff ↗
- 2.1.72023-09-19 · diff ↗
- 2.1.62023-05-26 · diff ↗
- 2.1.52023-04-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.1.4
- 2.1.32022-11-10 · diff ↗
- 2.1.22022-11-02 · diff ↗
- 2.1.12022-10-22 · diff ↗
- 2.1.0
- 2.0.82022-06-22 · diff ↗
- 2.0.7
- 2.0.62022-05-12
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-05-12
- Total releases
- 32 / 4 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 2.3 KB / 1 file
- Download size
- 3.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("nlmixr2est")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-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.