R Observatory
Search
install.packages("yardstick")
CRAN 30-day downloads, method
30,778−5.2% down on the 30 days before, the worse direction
Test coverage, method
98%of lines run by tests

Tidy tools for quantifying how well model fits to a data set such as confusion matrices, class probability curve summaries, and regression metrics (e.g., RMSE).

Maintainer
Emil Hvitfeldt
Latest release
7 Apr 2026
First release
12 Nov 2017

Compare with another package

More details
Releases
16
Needs compilation
Yes
Needs R
>= 4.1
Config/Needs/website
tidyverse/tidytemplate
Config/testthat/edition
3
Config/usethis/last-upkeep
2025-04-24
LazyData
true
RoxygenNote
7.3.3
Task views (2)
Collections (1) Method, Collections
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("yardstick")
APA
Hvitfeldt, E., Posit Software, PBC, Kuhn, M., & Vaughan, D. (2026). yardstick: Tidy Characterizations of Model Performance (Version 1.4.0) [Computer software]. https://doi.org/10.32614/CRAN.package.yardstick
About

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

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

From data release v2026-10-29, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    1.4.0
    Time taken
    262 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    1.4.0
    Time taken
    164 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    1.4.0
    Time taken
    176 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    1.4.0
    Time taken
    180 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    417 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    1.4.0
    Time taken
    61 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    251 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    408 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    260 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    238 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    1.4.0
    Time taken
    59 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    283 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    1.4.0
    Time taken
    309 s
  • 13 OK

Over time

No change since 25 Oct 2026

As a list (7)
ChangedWorst statusOKNotesWarningsErrors
25 Oct 2026OK13000
24 Oct 2026Error12001
4 Aug 2026OK13000
1 Aug 2026Note12100
8 Jun 2026OK12000
7 Jun 2026Note12100
10 Mar 2026OK14000

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
35,325−2.8% down on the 30 days before, the worse directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

630 of 26,553

CRAN

30,778 downloads in the last 30 days

Rank
630 of 26,553
Change
−5.2% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

1,231 downloads in the last 30 days

Rank
752 of 30,526
Change
+25.1% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

13 downloads in the last 30 days

Rank
3,737 of 29,233
Change
+8.3% up on the 30 days before, the better direction

It is in the total. Take it out

conda-forge

3,278 downloads in the last 30 days

Rank
558 of 3,828
Change
+15.7% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

25 downloads in the last 30 days

Rank
750 of 7,575
Change
−51% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
11
Dependent packages
34
Suggested by
31
Needs (11)
Installing it adds
17 packages, 5.9 MB of source
Of those, need compilation
10
Optional extras (8)
Dependent packages (34)
PackageTitleDownloads in 30 days
tidymodelsEasily Install and Load the 'Tidymodels' Packages85,692
tuneTidy Tuning Tools24,212
probablyTools for Post-Processing Predicted Values3,895
waywiserErgonomic Methods for Assessing Spatial Models2,302
modeltimeThe Tidymodels Extension for Time Series Modeling1,564
textAnalyses of Text using Transformers Models from HuggingFace, Natural Language Processing and Machine Learning865
diceRDiverse Cluster Ensemble in R793
modeltime.ensembleEnsemble Algorithms for Time Series Forecasting with Modeltime647
modeltime.resampleResampling Tools for Time Series Forecasting632
healthyR.aiThe Machine Learning and AI Modeling Companion to 'healthyR'531
prcbenchTesting Workbench for Precision-Recall Curves453
tidysdmSpecies Distribution Models with Tidymodels438
fastmlGuarded Resampling Workflows for Leakage-Aware Machine Learning in R421
actuaryActuarial Functions and Utilities410
shinymodelsInteractive Assessments of Models404
tidylearnA Unified Tidy Interface to R's Machine Learning Ecosystem402
autostatsAuto Stats374
ldmpprEstimate and Simulate from Location Dependent Marked Point Processes374
adjROCComputing Sensitivity at a Fix Value of Specificity and Vice Versa as Well as Bootstrap Metrics for ROC Curves368
forestecologyFitting and Assessing Neighborhood Models of the Effect of Interspecific Competition on the Growth of Trees341
MLwrapMachine Learning Modelling for Everyone335
fastTSFast Time Series Modeling for Seasonal Series with Exogenous Variables333
h3sdmSpecies Distribution Modeling with H3 Grids325
CimpleGA Method to Identify Single CpG Sites for Classification and Deconvolution322
sae.projectionSmall Area Estimation Using Model-Assisted Projection Method306
treeheatrHeatmap-Integrated Decision Tree Visualizations284
tidysynthesisA Common API for Synthesizing Data275
lwplsLocally-Weighted Partial Least Squares for 'tidymodels'269
triageRAutomated Machine Learning and AI Agent Tools for Clinical Prediction Modelling266
postcardEstimating Marginal Effects with Prognostic Covariate Adjustment259
trendevalEvaluate Trending Models254
mrIMLMulti-Response (Multivariate) Interpretable Machine Learning251
mupetMulticlass Performance Evaluation Toolkit214
PAmeasuresPerformance Assessment for Continuous and Survival Outcomes2
Functions
608
Public exports
161
Lines of R code
18,645
Median complexity
1
Functions (608)
Size and composition

Lines by kind (53,266)

KindLinesShare
R code18,64535%
Tests21,96641%
Documentation12,04423%
Guides4750.9%
Compiled code1360.3%

Lines by language

LanguageLinesShare
R37,17670%
Rd12,04423%
Markdown3,4356%
Vignettes4750.9%
C1360.3%

Languages are counted from file extensions.

Files
418
R functions
605
Compiled functions
3
Object systems
S3: 150 methods
Deprecated functions
6
Complexity
Median
1
Mean
2.08
Highest
23
Median lines per function
15
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
605
Calls
1,158
Unconnected
84
Groups
9
Growth (16 releases)
Total lines by release
3,442 on 12 Nov 201753,266 on 7 Apr 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
97.6%
Expressions run by tests
97.6%
Test cases
911
Exports named in tests
93.8%
Coverage by file (76)
Coverage run
Lines counted
6,006
Lines the tests ran
5,862
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
911
Snapshot tests
470
Lines of tests
21,966
Test lines per line of code
1.18
Exports documented
100%
Arguments documented
99.1%
Return value documented
88%
Help pages with examples
90.1%
Examples run in checks
100%
Guides (3)
Other documentation
README
Yes, 292 words
Release notes file
Yes
Help pages
91
Lines of documentation
12,044
DatasetSizeColumns
hpc_cvMulticlass Probability Predictionsalso in 1 other package3,467 × 7obs, pred, VF, F, M, L and 1 more
lung_survSurvival Analysis Results228 × 4
pathologyLiver Pathology Dataalso in 1 other package344 × 2pathology, scan
solubility_testSolubility Predictions from MARS Modelalso in 1 other package316 × 2solubility, prediction
two_class_exampleTwo Class Predictionsalso in 1 other package500 × 4truth, Class1, Class2, predicted

Funded by Posit Software, PBC

Earlier names (1)
  • RStudio

tidymodels / yardstick on github.com

Stars
406+0.74% up on 30 days ago, the better direction
Forks
65
Open issues
30
Last commit
17 Sep 2026
Activity
Commits
1,469
Open pull requests
6
Tagged releases
15
Latest tagged release
v1.4.0, 7 Apr 2026
In development
Default branch at 1.4.0.9000, ahead of CRAN 1.4.0 (checked 2026-10-25)
Issues closed in
393 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
94%
Created
30 Oct 2017
Licence file reads as
–
Development practices (15)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Governance and communityCode of conduct, Contributing guide
Docs sourceREADME.Rmd, pkgdown
GitHub Pages site last deployed 2026-09-17
The repository has a site deploy workflow
pkgdown site last built 2026-04-07
CoverageCoverage reporting (Codecov)
Reproducibility and dev environmentdata-raw/
CRAN release processcran-comments.md, revdep/
Lint, format, editorAir, VS Code, RStudio project

Method, repository practices

Across tidymodels

Claude Codeat least 1 crediting itClaude CodeFirst seen 16 Jan 2026at least 1 crediting it
Claude Opus 4.6Claude Opus 4.61 Apr 20261 commit

Tools

ToolFirst seenFoundCommits crediting it
Claude Code16 Jan 2026Seen in the repository.claude.claude/skillsNamed in .Rbuildignore.claude1 at least
  • Seen in the repository
  • Named in .Rbuildignore

Models

ModelCommitsFirst commitLast commitCredit lines of
Claude Opus 4.611 Apr 20261 Apr 2026Claude Code

Across tidymodels

R releases
  • On CRAN
  • Release
VersionReleasedREvents
1.4.0 current7 Apr 20264.5.3
1.3.223 Jan 20254.4.2
1.3.121 Mar 20244.3.3
1.3.019 Jan 20244.3.2
1.2.021 Apr 20234.3.0
1.1.08 Sep 20224.2.1Maintainer: Emil Hvitfeldt
1.0.06 Jun 20224.2.0
0.0.922 Nov 20214.1.2
Earlier versions (8)
VersionReleasedREvents
0.0.828 Mar 20214.0.4Licence: MIT + file LICENSE
0.0.713 Jul 20204.0.2
0.0.617 Mar 20203.6.3
0.0.523 Jan 20203.6.2
0.0.427 Aug 20193.6.1Maintainer: Davis Vaughan
0.0.38 Mar 20193.5.2
0.0.25 Nov 20183.5.1
0.0.112 Nov 20173.4.2

Relicensed from GPL-2 in version 0.0.8.

Release notes (1.4.0)

Breaking Changes

  • The global option yardstick.event_first (deprecated in 0.0.7) now throws an error. Use the event_level argument of individual metric functions instead. (#632)
  • conf_mat() now throws an error if anything is passed to ... (deprecated in 1.0.0). This argument has had no effect since case weight support was added. (#632)
  • roc_auc(), roc_aunp(), roc_aunu(), and roc_curve() now throw an error if a non-empty list is passed to options (deprecated in 1.0.0). Use the pROC package directly if you need these features. (#632)

Deprecations

  • dots_to_estimate(), metric_summarizer(), and metric_vec_template() (soft-deprecated in 1.2.0) now warn for all users. See the yardstick 1.2.0 release notes for recommended replacements. (#632)

New Metrics

  • gini_coef() computes the normalized Gini coefficient for regression, which measures ranking ability based on the Lorenz curve. (#147)
  • mse() computes the mean squared error. (#560)
  • rmse_relative() computes the relative root mean squared error, normalizing RMSE by the range of the true values. (#527)
  • fall_out() and miss_rate() compute the false positive rate and false negative rate respectively. (#336)
  • markedness() computes the markedness metric (PPV + NPV - 1), the predictive power analog of j_index(). (#27)
  • roc_dist() computes the Euclidean distance from the (sensitivity, specificity) point to the ideal point (1, 1) in ROC space. (#148)
  • sedi() computes the Symmetric Extremal Dependence Index, a prevalence-independent skill metric for binary classification that remains reliable at extreme class imbalance. (#630)
  • ranked_prob_score() computes the ranked probability score for ordinal classification data. (#524)
  • weighted_interval_score() is a new quantile metric. (#569)

Improvements

  • Added checks to all metrics for the na_rm argument. (#349)
  • Added improved argument checking for metrics with additional arguments. (#519)
  • Added documentation pages for each metric type (e.g., ?class-metrics, ?numeric-metrics) listing all available metrics with their direction and range. (#547, #540)
  • All class metrics and probability metrics now include mathematical formulas in their documentation. (#605)
  • All metrics now document their valid range of output values. (#572)
  • Documentation pages for metrics with alternate argument values now emphasize using metric_tweak() when building metric sets. (#626)
  • Survival metrics performance has been improved. (#576)
  • brier_class() has gained the event_level argument. (#515)
  • get_metrics() has been added to return a metric_set() containing all metrics of a specified type. (#534)
  • metric_set() now provides a more informative error message when estimate is not explicitly named for class/prob or survival metric sets. (#504)
  • roc_curve() has gained a thresholds argument for specifying custom thresholds at which the curve is evaluated. (#488)

Bug Fixes

  • brier_class() no longer returns NaN with extreme value case weights. (#614)
  • classification_cost() documentation now correctly refers to the cost column of the costs data frame. (#343)
  • mpe() documentation now includes the formula and clarifies the interpretation of positive and negative values. (#345)
  • poisson_log_loss() now handles 0-valued estimates without returning Inf or NaN. (#513)
  • Fixed a bug where ranked probability metrics didn't work in combination with other classification metrics in metric_set(). (#539)
  • Fixed documentation to show equations correctly. (#541)

Developer

  • Added infrastructure for quantile metrics. (#569)
  • Added infrastructure for survival metrics on the linear predictor. (#551)
  • new_metric() and related functions gain an optional range argument to store the valid output range of a metric. (#572)
  • Removed crayon as a suggested package. (#574)