Skip to content

NMsim

0.2.8Package record

Seamless 'Nonmem' Simulation Platform

0packages dependsuggested by 1
6.4Kdownloads / year
69.3%test coverage
13/13flavors OK

Overview

About

A complete and seamless 'Nonmem' simulation interface within R. Turns 'Nonmem' control streams into simulation control streams, executes them with specified simulation input data and returns the results. The simulation is performed by 'Nonmem', eliminating manual work and risks of re-implementation of models in other tools.

Changes in 0.2.8

New Features

  • The carry.out argument is better implemented in NMsim and NMreadSim(). carry.out is used to specify what columns from the input data set to include in the simulation results (while table.vars is used to control what variables to include in Nonmem $TABLE). This can be supplied to NMsim(), and NMreadSim() reapplies carry.out. It is useful when performing very large simulations where a wide input data set us memory demanding to merge onto the simulation results.
  • NMreadSim() has a new argument, reread.tmp, which can be used to force a re-read of the Nonmem outputs (in contrast to the compressed simulation results). This is especially useful if changing carry.out.
  • sampleCovs() can now sample with or without replacement - see new argument replace.
  • sampleCovs() supports grouping for successful (parallel) simulations. This is normally only used if sampleCovs() is used in combination with NMsim_EBE(), so if sampling from observed subjects to simulate with their empirical Bayes' estimates. This will likely lead to duplicated ID values. sampleCovs() now returns a column that can be used for splitting (using say data.table::split()) the data set into data sets without duplicated ID values. sampleCovs() also offers the arguments col.idcgrp to name the returned column and idcgrp.redist to redistribute the split to obtain (close to) equally sized splits.
  • The qsub execution path can now be specified using NMdata::NMdataConf(), like this:

``` r

NMdata::NMdataConf(path.qsub="/path/to/qsub")

```

This should normally not be necessary, but in some setups, qsub is not in the path to executables available to the shell that executes Nonmem, using qsub if sge=TRUE. On linux, you can most often find the qsub path by opening a terminal and executing

``` shell

which qsub

Show all changes in 0.2.8Hide the rest of the changes in 0.2.8

```

Bugfixes

  • typicalize() (invoked by NMsim(typical=TRUE)) now drops sections with priors (like $OMEGAP, $OMEGAPD) when the parameter section (like $OMEGA) is "typicalized". This should resolve issues related to typical-subject simulations of models with between-occasion variability.
  • NMreadSim() would not always respect the check.time argument. Now fixed.
  • Paths would in some (not very common) cases get wrongly processed by NMsim, causing issues when reading simulation results. Fixed.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 32.4 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-09-17
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.2.8
READMEYes · 1,700 wordsVignettes· In the repository, left out of the releaseNEWSYes · 100% structured · mentions 0.2.8Citation fileNoWebsiteYes · pkgdown
Help pages
68 (32 internal)
Examples that run
59%10 run in a plain check · 7 never run
Exported functions with examples
39%
Documented parameters
99%
Return-value docs
100%
Help pages citing references
3%

Downloads

6.4K
CRAN downloads in the past year
Rank #5,366 · ~18/day · ~535/mo
Daily download trend is not available in this view yet.
60030 days
1.5K90 days
6.4K1 year
Compare downloads with other packages →
Also on114 r2u6 autocran

Repository

10Stars
6Forks
2Open issues
0Open PRs
14Releases
1,298Commits
11Commit identities
1,298 commits · Last activity 2026-09-18 · 0% stars, 30d · Default branch at 0.2.8.901, ahead of CRAN 0.2.8 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
96%
Median days to close, 50 most recently updated closed issues
120
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-07-28 · 102026-07-07 · 10
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/nmautoverse/nmsim on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-18 · The repository has a site deploy workflow

pkgdown site last built 2026-09-18

Coverage (1)
Coverage reporting
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
18 external dependencies (excludes base and recommended)

Installing NMsim adds 9 packages (5 with compiled code, 15 MB of source tarballs). Heaviest: data.table 5.7 MB, NMdata 5.2 MB, Rcpp 1.8 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (4)
Author, Maintainer since 0.0.2 (2023)
Contributor · added in 0.1.6
Contributor · added in 0.1.3
Contributor · added in 0.1.4
Listed in earlier versions (1)
no longer listed · 0.0.2 to 0.1.0
Releases (25)

Pick two releases to compare their code metrics.

  • 0.2.8Latest
    record
    2026-09-08 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.2.7
    record
    2026-03-19 · diff ↗ ·
    added 1 export
    prioritizePaths
  • 0.2.6
    record
    2025-11-03 · diff ↗ ·
    removed 2 exports
    as.NMctl, readCtl
  • 0.2.5
    record
    2025-09-06 · diff ↗ ·
    added 1 export
    deleteTmpDirs
  • 0.2.4
    record
    2025-07-16 · diff ↗ ·
    removed 2 exports
    NMupdateSizes, prioritizePaths
    added 6 exports
    NMwriteFilters, NMwriteInits, NMwriteSizes, as.NMctl, modTab, readCtl
  • 0.2.3
    record
    2025-05-20 · diff ↗ ·
    added 1 export
    prioritizePaths
  • 0.2.2
    record
    2025-05-06 · diff ↗ ·
    added 1 export
    sampleCovs
  • 0.2.1
    record
    2025-04-24 · diff ↗ ·
    added 4 exports
    NMaddSamples, forestDefineCovs, forestSummarize, samplePars
  • R
    R 4.5.0 released · 2025-04-11
  • 0.2.0
    record
    2025-03-13 · diff ↗ ·
    removed 1 export
    NMwriteInits
  • 0.1.6
    record
    2025-02-05 · diff ↗ ·
    added 2 exports
    NMupdateSizes, NMwriteInits
  • 0.1.5
    record
    2024-11-14 · diff ↗ ·
    added 1 export
    summarizeCovs
  • 0.1.4
    record
    2024-11-02 · diff ↗ ·
    added 4 exports
    add, expandCovs, overwrite, sampleParsSimpar
  • 0.1.3
    record
    2024-08-26 · diff ↗ ·
    added 3 exports
    NMsimTestConf, NMsim_NWPRI, readParsWide
  • 0.1.2
    record
    2024-07-15 · diff ↗
Show 13 earlier eventsHide 13 earlier events
  • 0.1.1
    record
    2024-07-03 · diff ↗ ·
    added 1 export
    NMsim_EBE
  • R
    R 4.4.0 released · 2024-04-24
  • 0.1.0
    record
    2024-02-22 · diff ↗
  • 0.0.10
    record
    2024-02-09 · diff ↗ ·
    removed 2 exports
    is.NMsimModels, unNMsimModels
    added 2 exports
    is.NMsimModTab, unNMsimModTab
  • 0.0.9
    record
    2024-02-07 · diff ↗
  • 0.0.8
    record
    2024-02-07 · diff ↗ ·
    removed 2 exports
    is.NMsimTab, unNMsimTab
    added 5 exports
    is.NMsimModels, is.NMsimRes, simPopEtas, unNMsimModels, unNMsimRes
  • 0.0.7
    record
    2024-01-09 · diff ↗ ·
    added 3 exports
    NMreadSim, is.NMsimTab, unNMsimTab
  • 0.0.6
    record
    2023-11-28 · diff ↗
  • 0.0.5
    record
    2023-11-11 · diff ↗ ·
    added 1 export
    genPhiFile
  • 0.0.4
    record
    2023-09-21 · diff ↗
  • 0.0.3
    record
    2023-09-21 · diff ↗ ·
    added 5 exports
    NMsim_VarCov, NMsim_asis, NMsim_default, NMsim_known, NMsim_typical
  • 0.0.2
    record
    2023-09-14
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-09-14
Total releases
25 / 3 yrs
License
MIT + file LICENSE OSI
Additional repositories
mpn.metworx.com
Minimum R
≥ 3.5.0
Download size
1.8 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("NMsim")
Delff, P., Grinshpun, B., Reilly, B., & Shroff, S. (2026). NMsim: Seamless 'Nonmem' Simulation Platform (Version 0.2.8) [Computer software]. https://doi.org/10.32614/CRAN.package.NMsim

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 NMsim version 0.2.8 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-18, 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