Pharmacometric and Pharmacokinetic Toolkit
Overview
Pharmacometric tools for common data analytical tasks; closed-form solutions for calculating concentrations at given times after dosing based on compartmental PK models (1-compartment, 2-compartment and 3-compartment, covering infusions, zero- and first-order absorption, and lag times, after single doses and at steady state, per Bertrand & Mentre (2008) https://web.archive.org/web/20231002021707/https://www.facm.ucl.ac.be/cooperation/Vietnam/WBI-Vietnam-October-2011/Modelling/Monolix32_PKPD_library.pdf); parametric simulation from NONMEM-generated parameter estimates and other output; and parsing, tabulating and plotting results generated by Perl-speaks-NONMEM (PsN).
- Added
cut_quantile(), which creates quantile-based bins for one or more continuous variables, with per-variable control over the number of groups. - Added
datamap(), which plots individual dosing and observation records over time. dgr_table()now takesfieldsas a named character vector mapping column names to display labels. The separatenamesargument is deprecated, but unnamedfieldswithnamescontinues to work.- Added dependencies
purrrandtidyr. - Fixed
read_nm(), which passed the file extension toxml2::read_xml()as an encoding rather than appending it to the file name, and read the unresolved file name instead of the one located on disk. Thedirectoryargument and file names given without the.xmlextension were therefore ignored, and macOS reported anUnsupported encoding: .xmlwarning (#36). - Removed the blanket
statsandutilsimports, which caused areplacing previous import 'stats::filter' by 'dplyr::filter'warning when the package was loaded (#36). calc_derived()and thecalc_derived_*()functions now returnAUCtauandAUCtau_dose_normalizedas plain numbers. PKNCA 0.12.1.9000 attaches amethodattribute to the AUC it returns, which propagated into the derived-parameter list and broke comparisons against plain numeric values (#37).- Test snapshots are now committed, the CI workflows have been refreshed, and the documentation has been regenerated with roxygen2 8.1.0 (#36).
calc_derived()and thecalc_derived_*()functions now work with vector inputs (#29).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 47 (1 internal)includes a package overview page
- Examples that run
- 41%19 run in a plain check · 27 never run
- Exported functions with examples
- 100%
- Documented parameters
- 98%
- Return-value docs
- 100%
- Help pages citing references
- 23%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 28
- Median days to close, 50 most recently updated closed PRs
- 16
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/kestrel99/pmxtools on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-09 · The repository has a site deploy workflow
pkgdown site last built 2026-10-09
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-27Pull request it wrote: opened by a project memberCommits: at least 7 crediting it in the message
- Claude Opus 57 commits · Aug 2026
Dependencies
Installing pmxTools adds 42 packages (23 with compiled code, 38 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, patchwork 3.2 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.6Latest
- RR 4.6.0 released · 2026-04-24
- 1.52025-08-25 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.32023-02-21 · diff ↗ ·
added 9 exports
blq_log_trans, blq_trans, breaks_blq_general, estimate_lloq, ftrans_blq_linear, ftrans_blq_log, itrans_blq_linear, itrans_blq_log, label_blq - RR 4.2.0 released · 2022-04-22
- 1.2.3
- RR 4.1.0 released · 2021-05-18
- 1.2.12020-08-26 · diff ↗ ·
added 5 exports
gcv_convert, get_probinfo, read_nm_all, read_nm_multi_table, read_nm_std_ext - RR 4.0.0 released · 2020-04-24
- 1.0
- 0.1.32019-10-28 · diff ↗ ·
added 8 exports
calc_derived, calc_sd_1cmt, calc_sd_2cmt, calc_sd_3cmt, calc_ss_1cmt, calc_ss_2cmt, calc_ss_3cmt, plot_scm - RR 3.6.0 released · 2019-04-26
- unarchivedReturned to CRAN2019-03-11
Package metadata
- First published
- 2018-03-14
- Total releases
- 9 / 8 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 969 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("pmxTools")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.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.