Skip to content

nonmem2rx

Converts 'NONMEM' Models to 'rxode2'

v0.1.9 · Nov 26, 2025 · GPL (>= 3)

Description

'NONMEM' has been a tool for running nonlinear mixed effects models since the 80s and is still used today (Bauer 2019 <doi:10.1002/psp4.12404>). This tool allows you to convert 'NONMEM' models to 'rxode2' (Wang, Hallow and James (2016) <doi:10.1002/psp4.12052>) and with simple models 'nlmixr2' syntax (Fidler et al (2019) <doi:10.1002/psp4.12445>). The 'nlmixr2' syntax requires the residual specification to be included and it is not always translated. If available, the 'rxode2' model will read in the 'NONMEM' data and compare the simulation for the population model ('PRED') individual model ('IPRED') and residual model ('IWRES') to immediately show how well the translation is performing. This saves the model development time for people who are creating an 'rxode2' model manually. Additionally, this package reads in all the information to allow simulation with uncertainty (that is the number of observations, the number of subjects, and the covariance matrix) with a 'rxode2' model. This is complementary to the 'babelmixr2' package that translates 'nlmixr2' models to 'NONMEM' and can convert the objects converted from 'nonmem2rx' to a full 'nlmixr2' fit.

Downloads

CRAN

480

Last 30 days

7997th

1.3K

Last 90 days

6.4K

Last year

Trend: +22.8% (30d vs prior 30d)

r2u CRAN

55

Last 30 days

143

Last 90 days

514

Last year

Trend: +1.9% (30d vs prior 30d)

autoCRAN

7

Last 7 days

20

Last 30 days

2

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

install log ‘’ does not exist
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  9.2Mb
  sub-directories of 1Mb or more:
    libs   5.2Mb
    mods   3.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  9.6Mb
  sub-directories of 1Mb or more:
    libs   5.5Mb
    mods   3.4Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   2.6Mb
    mods   3.3Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/nonmem2rx.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  9.2Mb
  sub-directories of 1Mb or more:
    libs   5.2Mb
    mods   3.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  9.6Mb
  sub-directories of 1Mb or more:
    libs   5.5Mb
    mods   3.4Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   2.6Mb
    mods   3.3Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  9.2Mb
  sub-directories of 1Mb or more:
    libs   5.2Mb
    mods   3.3Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  9.6Mb
  sub-directories of 1Mb or more:
    libs   5.5Mb
    mods   3.4Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  6.6Mb
  sub-directories of 1Mb or more:
    libs   2.6Mb
    mods   3.3Mb

Reverse Dependencies (3)

imports

suggests

Dependency Network

Dependencies Reverse dependencies checkmate digest dparser lotri Rcpp rxode2 magrittr cli data.table qs2 xml2 ggplot2 ggforce crayon babelmixr2 amp.sim ruminate nonmem2rx

Version History

11 tracked
new 0.1.9 Mar 10, 2026
updated 0.1.9 ← 0.1.8 diff Nov 26, 2025
updated 0.1.8 ← 0.1.7 diff Aug 28, 2025
updated 0.1.7 ← 0.1.6 diff Jul 14, 2025
updated 0.1.6 ← 0.1.5 diff Nov 27, 2024
updated 0.1.5 ← 0.1.4 diff Sep 17, 2024
updated 0.1.4 ← 0.1.3 diff May 29, 2024
updated 0.1.3 ← 0.1.2 diff Dec 11, 2023
updated 0.1.2 ← 0.1.1 diff Jul 2, 2023
updated 0.1.1 ← 0.1.0 diff May 31, 2023
new 0.1.0 May 25, 2023