Skip to content

hardhat

1.4.3Package record

Construct Modeling Packages

39packages dependsuggested by 13
1.9Mdownloads / year
97.4%test coverage
13/13flavors OK

Overview

About

Building modeling packages is hard. A large amount of effort generally goes into providing an implementation for a new method that is efficient, fast, and correct, but often less emphasis is put on the user interface. A good interface requires specialized knowledge about S3 methods and formulas, which the average package developer might not have. The goal of 'hardhat' is to reduce the burden around building new modeling packages by providing functionality for preprocessing, predicting, and validating input.

Changes in 1.4.3
  • mold() no longer throws warnings about strings_as_factors argument when used on recipe objects (#284).
  • Improved handling of missings in quantile predictions (#301, @brookslogan).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.4.3
READMEYes · 435 wordsVignettesYes · 3 · dynamicNEWSYes · 100% structured · mentions 1.4.3Citation fileNoWebsiteYes · pkgdown
Help pages
55 (6 internal)includes a package overview page
Examples that run
98%46 run in a plain check (3 of them under a condition) · 1 hold no code
Exported functions with examples
87%
Documented parameters
99%
Return-value docs
92%
Help pages citing references
0%

Downloads

1.9M
CRAN downloads in the past year
Rank #309 · ~5.2K/day · ~158.7K/mo
Daily download trend is not available in this view yet.
118.8K30 days
352.7K90 days
1.9M1 year
Compare downloads with other packages →
Also on29.3K r2u6 autocran302.9K conda_forge17.2K c2d4u

Repository

109Stars
20Forks
5Open issues
1Open PRs
17Releases
832Commits
13Commit identities
832 commits · Last activity 2026-06-09 · +0.9% stars, 30d · Default branch at 1.4.3.9000, ahead of CRAN 1.4.3 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
93%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2026-07-14 · 1082026-10-17 · 109
PracticesBeta

15 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/tidymodels/hardhat on 2026-10-11.

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 (2)
Code of conductContributing guide
Docs source (4)
README.Rmdpkgdown

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

pkgdown site last built 2026-04-07

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (4)
Lint workflowAirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing hardhat adds 11 packages (8 with compiled code, 4.1 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, cli 629 KB.

Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (4)
Author, Maintainer since 1.4.0 (2024) · added in 1.4.0
Author
Copyright holder, Funder · added in 1.3.0

Previously maintained by Davis Vaughan (0.1.0 to 1.3.1).

Listed in earlier versions (1)
RStudio
no longer listed · 0.1.0 to 1.2.0
Releases (17)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.3Latest
    record
    2026-04-04 · current release · diff ↗ ·
    added 3 exports
    impute_quantiles, is_quantile_pred, snap
  • 1.4.2
    record
    2025-08-20 · diff ↗ ·
    added 1 export
    extract_tailor
  • R
    R 4.5.0 released · 2025-04-11
  • 1.4.1
    record
    2025-01-31 · diff ↗ ·
    added 4 exports
    check_quantile_levels, contr_one_hot, extract_quantile_levels, quantile_pred
  • 1.4.0
    record
    2024-06-02 · diff ↗ ·
    added 2 exports
    extract_fit_time, extract_postprocessor
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.1
    record
    2024-02-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    record
    2023-03-30 · diff ↗ ·
    added 5 exports
    fct_encode_one_hot, recompose, spruce_class_multiple, spruce_numeric_multiple, spruce_prob_multiple
  • 1.2.0
    record
    2022-06-30 · diff ↗
  • 1.1.0
    record
    2022-06-10 · diff ↗ ·
    added 1 export
    run_forge
  • 1.0.0
    record
    2022-06-01 · diff ↗ ·
    added 9 exports
    frequency_weights, importance_weights, is_case_weights, is_frequency_weights, is_importance_weights, new_case_weights, new_frequency_weights, new_importance_weights, weighted_table
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0
    record
    2022-01-24 · diff ↗ ·
    added 3 exports
    extract_parameter_dials, extract_parameter_set_dials, tune
  • 0.1.6
    record
    2021-07-14 · diff ↗ ·
    added 7 exports
    extract_fit_engine, extract_fit_parsnip, extract_mold, extract_preprocessor, extract_recipe, extract_spec_parsnip, extract_workflow
Show 9 earlier eventsHide 9 earlier events

Package metadata

First published
2019-12-16
Total releases
17 / 7 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1
Bundled data
0.5 KB / 1 file
Download size
613 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("hardhat")
Frick, H., Posit Software, PBC, Kuhn, M., & Vaughan, D. (2026). hardhat: Construct Modeling Packages (Version 1.4.3) [Computer software]. https://doi.org/10.32614/CRAN.package.hardhat

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.

APA

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

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