Skip to content

precrec

0.24.0Package record

Calculate Accurate Precision-Recall and ROC (Receiver Operator Characteristics) Curves

3packages dependsuggested by 5
49.7Kdownloads / year
96.6%test coverage
13/13flavors OK

Overview

About

Accurate calculations and visualization of precision-recall and ROC (Receiver Operator Characteristics) curves. Saito and Rehmsmeier (2015) doi:10.1371/journal.pone.0118432.

Changes in 0.24.0
  • New format_points() reconstructs per-instance scores and labels from a table of performance values calculated at a set of thresholds - true and false positive rates, or recall and precision - so that a summary table can reach evalmod() and mmdata() after all. The rows between two thresholds become instances that share a score, and the even spread precrec already applies to a tied run is the non-linear interpolation of Davis and Goadrich (2006), so nothing new was needed in the curve code and a complete table round-trips exactly. np and nn are required: rates do not carry the class totals, and the totals also place the chance-level baseline. The interpolation is exact only across a gap one instance wide, so an area read off a coarse table remains an estimate - format_points() says so when it runs, and *Prepare your data* says so at more length. Requested in #6 and #15, and tracked in #32.
Show all changes in 0.24.0Hide the rest of the changes in 0.24.0
  • *Prepare your data* replaces its section on what cannot be used as input with one on what a table of summary points can and cannot give you.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 6.0 min · r-devel-linux-x86_64-debian-clang
Status changes
  • OK13 OK2026-09-29
  • ERROR12 OK, 1 ERROR2026-09-25
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • NOTE12 OK, 1 NOTE2026-06-08
  • OK14 OK2026-04-22
  • ERROR13 OK, 1 ERROR2026-04-18
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.24.0
READMEYes · 837 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.24.0Citation fileYes · cites a publicationWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
36includes a package overview page
Examples that run
82%23 run in a plain check · 5 never run
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
3%

Downloads

49.7K
CRAN downloads in the past year
Rank #1,957 · ~136/day · ~4.1K/mo
Daily download trend is not available in this view yet.
3.4K30 days
9.6K90 days
49.7K1 year
Compare downloads with other packages →
Also on2.8K r2u4 autocran7.8K conda_forge62 bioconda

Repository

47Stars
5Forks
0Open issues
0Open PRs
31Releases
772Commits
5Commit identities
License file reads as GPL-3.0 · 772 commits · Last activity 2026-09-14 · +2.2% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
32
Median days to close, 50 most recently updated closed PRs
21

Stars over time

2024-06-21 · 442026-10-15 · 47
PracticesBeta

12 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/evalclass/precrec on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Docs source (4)
README.Rmdpkgdown

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

pkgdown site last built 2026-09-14, before release 0.24.0 (2026-09-15)

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 3 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-29
    Seen in the repository: .claude, CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Commits: at least 108 crediting it in the message
Models named in its commits
  • Claude Opus 5100 commits · Aug to Sep 2026

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
14 external dependencies (excludes base and recommended)

Installing precrec adds 22 packages (11 with compiled code, 22 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, Rcpp 1.8 MB.

Depends (1)
R >= 4.1
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
3direct
0indirect
Imports 3
Suggested by 5
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.1.1 (2015)
Releases (28)

Pick two releases to compare their code metrics.

  • 0.24.0Latest
    record
    2026-09-15 · current release · diff ↗ ·
    added 12 exports
    auc_boot, auc_delong, auc_diff, average_precision, best_cutoff, classification_report, format_points, metric_curve, metric_table, prbe, prob_metrics, prob_metrics_ci
  • R
    R 4.6.0 released · 2026-04-24
  • 0.14.5
    record
    2025-05-15 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.14.4
    record
    2023-10-12 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.14.2
    record
    2023-03-12 · diff ↗
  • 0.14.1
    record
    2023-01-08 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.12.9
    record
    2022-03-10 · diff ↗
  • 0.12.8
    record
    2022-01-31 · diff ↗
  • 0.12.7
    record
    2021-05-31 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.12.5
    record
    2021-04-06 · diff ↗
  • 0.12.1
    record
    2021-02-02 · diff ↗
Show 24 earlier eventsHide 24 earlier events

Package metadata

First published
2015-12-04
Total releases
28 / 11 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1
Bundled data
564 KB / 7 files
Download size
954 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("precrec")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1093/bioinformatics/btw570.

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

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