Construct Modeling Packages
Overview
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.
mold()no longer throws warnings aboutstrings_as_factorsargument when used on recipe objects (#284).- Improved handling of missings in quantile predictions (#301, @brookslogan).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- 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
Repository
- 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
Forks over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-09 · The repository has a site deploy workflow
pkgdown site last built 2026-04-07
Show all practicesHide 2 practices
Dependencies
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.
Show the 48 most downloaded packagesHide the 48 most downloaded packages
Code & Tests
Datasets
People & History
Previously maintained by Davis Vaughan (0.1.0 to 1.3.1).
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.4.3Latest
- 1.4.2
- RR 4.5.0 released · 2025-04-11
- 1.4.12025-01-31 · diff ↗ ·
added 4 exports
check_quantile_levels, contr_one_hot, extract_quantile_levels, quantile_pred - 1.4.0
- RR 4.4.0 released · 2024-04-24
- 1.3.12024-02-02 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 1.3.02023-03-30 · diff ↗ ·
added 5 exports
fct_encode_one_hot, recompose, spruce_class_multiple, spruce_numeric_multiple, spruce_prob_multiple - 1.2.02022-06-30 · diff ↗
- 1.1.0
- 1.0.02022-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 - RR 4.2.0 released · 2022-04-22
- 0.2.0
- 0.1.62021-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")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.
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.