Skip to content

PKNCA

0.12.1Package record

Perform Pharmacokinetic Non-Compartmental Analysis

4packages dependsuggested by 1
33.1Kdownloads / year
99.0%test coverage
13/13flavors OK

Overview

About

Compute standard Non-Compartmental Analysis (NCA) parameters for typical pharmacokinetic analyses and summarize them.

Changes in 0.12.1

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_points will ignore points after lambda.z.time.last, instead of tlast (#448)
  • lambda.z calculations will now only consider time points that occur after the end of the latest dose administration (#139)
  • aucint.inf.pred is NA when 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

CRAN checks
13OK
Slowest check: 7.4 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-03
  • ERROR12 OK, 1 ERROR2026-06-27
  • OK14 OK2026-03-10
Advisories

none known

Documentation

Downloads

33.1K
CRAN downloads in the past year
Rank #2,349 · ~91/day · ~2.8K/mo
Daily download trend is not available in this view yet.
2.7K30 days
7.2K90 days
33.1K1 year
Compare downloads with other packages →
Also on529 r2u4 autocran152 c2d4u

Repository

89Stars
32Forks
3Open issues
5Open PRs
10Releases
1,895Commits
14Commit identities
noncompartmental-analysiscranrncapharmacokinetics
License file reads as AGPL-3.0 · 1,895 commits · Last activity 2026-10-22 · +3.5% stars, 30d · Default branch at 0.12.1.9002, ahead of CRAN 0.12.1 (checked 2026-10-22) · Discussions: 63 posts
Responsiveness
How these are sampled
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

2025-05-27 · 772026-10-23 · 89
PracticesBeta

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.

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 (3)
Code of conductContributing guideIssue templates
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-10-22 · The repository has a site deploy workflow

pkgdown site last built 2026-10-22

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
Reproducibility and dev environment (1)
data-raw/
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-03
    Seen in the repository: CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude
    Pull request it wrote: opened by a project member
    Commits: 8 by its own account · at least 420 crediting it in the message
From outside contributors
  • Claude Code
    Pull requests: 1 from outside contributors, first on 2026-10-07, 1 from forks
Models named in its commits
  • 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.

Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

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.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
4direct
0indirect
Imports 4
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (4)
Author, Maintainer since 0.6 (2015)
Author · added in 0.12.1
Contributor · added in 0.7.1
Releases (17)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.12.1Latest
    record
    2025-08-19 · current release · diff ↗ ·
    added 2 exports
    exclude_nca_by_param, exclude_nca_min.hl.adj.r.squared
  • 0.12.0
    record
    2025-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
  • R
    R 4.5.0 released · 2025-04-11
  • 0.11.0
    record
    2024-06-19 · diff ↗ ·
    removed 1 export
    pk.calc.vd
    added 6 exports
    as_PKNCAconc, as_PKNCAdata, as_PKNCAdose, as_PKNCAresults, pk.calc.count_conc, pk.calc.totdose
  • R
    R 4.4.0 released · 2024-04-24
  • 0.10.2
    record
    2023-04-29 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.10.1
    record
    2023-01-11 · diff ↗ ·
    removed 2 exports
    findOperator, parseFormula
    added 2 exports
    pk.calc.aucabove, pk.calc.cstart
  • 0.10.0
    record
    2022-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
  • R
    R 4.2.0 released · 2022-04-22
  • 0.9.5
    record
    2021-10-29 · diff ↗ ·
    added 1 export
    pk.calc.time_above
  • R
    R 4.1.0 released · 2021-05-18
  • 0.9.4
    record
    2020-06-01 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.9.3
    record
    2020-04-12 · diff ↗
Show 15 earlier eventsHide 15 earlier events
  • 0.9.2
    record
    2020-02-28 · diff ↗ ·
    added 2 exports
    PKNCA.options.describe, time_calc
  • 0.9.1
    record
    2019-07-29 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.8.5
    record
    2018-06-13 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • unarchivedReturned to CRAN
    2018-01-03
  • 0.8.4
    record
    2018-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.pred
    added 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 maintainer
    2017-12-16
    there was no response to requests for needed corrections
  • 0.8.1
    record
    2017-12-16 · diff ↗ ·
    removed 2 exports
    count.non.missing, sapplyBy
    added 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
  • R
    R 3.4.0 released · 2017-04-21
  • 0.7.1
    record
    2016-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
  • R
    R 3.3.0 released · 2016-05-03
  • 0.7
    record
    2016-04-01 · diff ↗ ·
    added 2 exports
    pk.calc.c0, pk.calc.vd
  • 0.6
    record
    2015-11-22
  • R
    R 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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for PKNCA version 0.12.1 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

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