Skip to content

hardhat

1.4.3

Construct Modeling Packages

48packages depend
2.1Mdownloads / year
97.4%test coverage
13/13checks pass

Overview

About
Maintained by Hannah FrickFirst published 2019-12-1617 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 3.5 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.93
97.4%
Coverage · measured lines
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 435 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
99%
Return-value docs
92%
References docs
0%

Downloads

2.1M
CRAN downloads in the past year
Rank #289 · ~5.7K/day · ~174K/mo
Daily download trend is not available in this view yet.
113.9K30 days
403.1K90 days
2.1M1 year
Compare downloads with other packages →
Also on27.7K r2u31 autocran286.1K conda_forge5.1K c2d4u

Repository

Repository
108Stars
20Forks
5Open issues
1Open PRs
17Releases
832Commits
13Contributors
832 commits · Last activity 2026-06-09

Forks over time

2026-07-14 · 212026-08-20 · 20

Repository practices

Upstream repositoryBeta

8 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/tidymodels/hardhat on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (3)
AirVS CodeRStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer · added in 1.4.0
Authors (3)
Author, Maintainer · added in 1.4.0
Author
Copyright holders (1)
Copyright holder, Funder · added in 1.3.0
Funders (1)
Copyright holder, Funder · added in 1.3.0
Listed in earlier versions (1)
no longer listed · 0.1.0 to 1.2.0
Package Timeline

17 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.3Latest
    2026-04-04 · current release · diff ↗
  • 1.4.2
    2025-08-20 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.4.1
    2025-01-31 · diff ↗
  • 1.4.0
    2024-06-02 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.1
    2024-02-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    2023-03-30 · diff ↗
  • 1.2.0
    2022-06-30 · diff ↗
  • 1.1.0
    2022-06-10 · diff ↗
  • 1.0.0
    2022-06-01 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0
    2022-01-24 · diff ↗
  • 0.1.6
    2021-07-14 · diff ↗
Show 9 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.5
    2020-11-09 · diff ↗
  • 0.1.4
    2020-07-02 · diff ↗
  • 0.1.3
    2020-05-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.2
    2020-02-28 · diff ↗
  • 0.1.1
    2020-01-09 · diff ↗
  • 0.1.0
    2019-12-16
  • R
    R 3.6.0 released · 2019-04-26

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
Installed size
not tracked yet
With dependencies
not tracked yet

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 is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-22. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-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