Perform Pharmacokinetic Non-Compartmental Analysis
Overview
Compute standard Non-Compartmental Analysis (NCA) parameters for typical pharmacokinetic analyses and summarize them.
Minor changes (unlikely to affect PKNCA use)
- Units for fraction excretion parameter (fe) are now accurately captured as amount/dose units rather than "fraction" (#426)
get_halflife_pointswill ignore points afterlambda.z.time.last, instead oftlast(#448)lambda.zcalculations will now only consider time points that occur after the end of the latest dose administration (#139)aucint.inf.predisNAwhen half-life is not estimable (#450)
New features
- PKNCA now has a debugging mode to support troubleshooting; it is not intended for production use. Debugging mode can be enabled using
PKNCA.options(debug = TRUE).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-03
- ERROR12 OK, 1 ERROR2026-06-27
- OK14 OK2026-03-10
Documentation
- Help pages
- 146 (2 internal)includes a package overview page
- Examples that run
- 82%14 run in a plain check · 3 never run
- Exported functions with examples
- 16%
- Documented parameters
- 97%
- Return-value docs
- 91%
- Help pages citing references
- 5%
- AUC Calculation with PKNCA
- AUC integration methods HTML
- Computing NCA Parameters for Theophylline
- Data Imputation HTML
- Half-Life Calculation
- Half-life calculation with Tobit regression HTML
- Introduction to PKNCA and Usage Instructions
- Methods Used for Dose-Aware Concentration Interpolation/Extrapolation
- Noncompartmental evaluation of time to steady-state HTML
- Options for Controlling PKNCA
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 588
- 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
Commit identities over time
11 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/humanpred/pknca 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-22 · The repository has a site deploy workflow
pkgdown site last built 2026-10-22
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-03-03Seen in the repository: CLAUDE.mdNamed in .Rbuildignore: .claude, CLAUDE.mdNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: 8 by its own account · at least 420 crediting it in the message
- Claude CodePull requests: 1 from outside contributors, first on 2026-10-07, 1 from forks
- Claude Sonnet 4.631 commits · Mar to May 2026
- Claude Opus 4.827 commits · Jun to Jul 2026
- Claude Fable 521 commits · Jun to Aug 2026
- Claude Opus 4.611 commits · Mar 2026
- Claude Opus 59 commits · Aug 2026
1 more model not listed. Some of these counts are a minimum, because the search stopped before the oldest commits.
Dependencies
Installing PKNCA adds 23 packages (15 with compiled code, 18 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, dplyr 902 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.12.1Latest2025-08-19 · current release · diff ↗ ·
added 2 exports
exclude_nca_by_param, exclude_nca_min.hl.adj.r.squared - 0.12.02025-05-08 · diff ↗ ·
added 7 exports
assert_intervals, exclude_nca_count_conc_measured, exclude_nca_tmax_0, exclude_nca_tmax_early, get_halflife_points, pk.calc.count_conc_measured, set_intervals - RR 4.5.0 released · 2025-04-11
- 0.11.02024-06-19 · diff ↗ ·
removed 1 export
pk.calc.vdadded 6 exports
as_PKNCAconc, as_PKNCAdata, as_PKNCAdose, as_PKNCAresults, pk.calc.count_conc, pk.calc.totdose - RR 4.4.0 released · 2024-04-24
- 0.10.22023-04-29 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.10.12023-01-11 · diff ↗ ·
removed 2 exports
findOperator, parseFormulaadded 2 exports
pk.calc.aucabove, pk.calc.cstart - 0.10.02022-10-16 · diff ↗ ·
added 22 exports
PKNCA_impute_method_start_cmin, PKNCA_impute_method_start_conc0, PKNCA_impute_method_start_predose, as_sparse_pk, cov_holder, filter, full_join, group_by, inner_join, is_sparse_pk, left_join, mutate, pk.calc.auciv, pk.calc.auciv_pbext, pk.calc.sparse_auc, pk.calc.sparse_auclast, pknca_units_table, right_join, sparse_auc_weight_linear, sparse_mean, ungroup, var_sparse_auc - RR 4.2.0 released · 2022-04-22
- 0.9.5
- RR 4.1.0 released · 2021-05-18
- 0.9.42020-06-01 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.9.32020-04-12 · diff ↗
Show 15 earlier eventsHide 15 earlier events
- 0.9.2
- 0.9.12019-07-29 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.8.52018-06-13 · diff ↗
- RR 3.5.0 released · 2018-04-23
- unarchivedReturned to CRAN2018-01-03
- 0.8.42018-01-03 · diff ↗ ·
removed 17 exports
pk.calc.aucpext.obs, pk.calc.aucpext.pred, pk.calc.cl.all, pk.calc.cl.last, pk.calc.cl.obs, pk.calc.cl.pred, pk.calc.kel.obs, pk.calc.kel.pred, pk.calc.mrt.last, pk.calc.mrt.obs, pk.calc.mrt.pred, pk.calc.vd.obs, pk.calc.vd.pred, pk.calc.vss.obs, pk.calc.vss.pred, pk.calc.vz.obs, pk.calc.vz.predadded 17 exports
add.interval.col, exclude_nca_max.aucinf.pext, exclude_nca_min.hl.r.squared, exclude_nca_span.ratio, getGroups, pk.calc.ae, pk.calc.aucint, pk.calc.aucint.all, pk.calc.aucint.inf.obs, pk.calc.aucint.inf.pred, pk.calc.aucint.last, pk.calc.ceoi, pk.calc.clr, pk.calc.dn, pk.calc.fe, pk.calc.mrt.iv, pk.calc.mrt.md - orphanedOrphaned by its maintainer2017-12-16there was no response to requests for needed corrections
- 0.8.12017-12-16 · diff ↗ ·
removed 2 exports
count.non.missing, sapplyByadded 31 exports
addProvenance, checkProvenance, exclude, get.parameter.deps, interp.extrap.conc.dose, pk.calc.auc.inf.obs, pk.calc.auc.inf.pred, pk.calc.aucpext.obs, pk.calc.aucpext.pred, pk.calc.aumc.inf.obs, pk.calc.aumc.inf.pred, pk.calc.cl.all, pk.calc.cl.last, pk.calc.cl.obs, pk.calc.cl.pred, pk.calc.cmin, pk.calc.deg.fluc, pk.calc.kel.obs, pk.calc.kel.pred, pk.calc.mrt.obs, pk.calc.mrt.pred, pk.calc.swing, pk.calc.tfirst, pk.calc.vd.obs, pk.calc.vd.pred, pk.calc.vss.obs, pk.calc.vss.pred, pk.calc.vz.obs, pk.calc.vz.pred, setDuration and 1 more - RR 3.4.0 released · 2017-04-21
- 0.7.12016-08-15 · diff ↗ ·
added 11 exports
business.cv, business.geocv, business.geomean, business.max, business.median, business.min, business.range, business.sd, geocv, geosd, pk.calc.mrt.last - RR 3.3.0 released · 2016-05-03
- 0.7
- 0.62015-11-22
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-11-22
- Total releases
- 17 / 11 yrs
- License
- AGPL-3 OSI
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PKNCA")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-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.