Skip to content

hardhat

1.4.3

Construct Modeling Packages

46packages 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: 4.7 min · r-devel-linux-x86_64-fedora-gcc
Code health
Yes
Tests · ratio 0.93
97.4%
Coverage · measured lines
100%
Documentation · exports
Yes
Vignettes
Yes
README
6
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

2.1M
CRAN downloads in the past year
Rank #273 · ~5.8K/day · ~176.9K/mo
Daily download trend is not available in this view yet.
142.9K30 days
502.5K90 days
2.1M1 year
Compare downloads with other packages →
Also on28.7K r2u27 autocran275.4K conda_forge5.1K c2d4u

Repository

Dependencies

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

Code & Tests

Code Composition
R 15,090 (69%)Rd 3,773 (17%)Markdown 2,011 (9%)Vignettes 1,056 (5%)
Code characteristics
Object systems
S365
Cyclomatic complexity
1.0 median / 23 max
Test cases
339 / 0.93 per code line
Documented parameters
99%

Test coverage

Line coverage

97%

Expression

96.5%

Tests / Examples

97.4% / 76% ex

Functions

355 85 exported

Complexity

2 avg / 23 max

Call network

355 nodes / 473 edges

Loading call graph…

Lowest coverage

355 functions
FunctionCycloCoverage
is_blueprint exp10%
refresh_blueprint exp10%
new_bake_role_requirements10%
new_role_requirements10%
refresh_blueprint.default_formula_blueprint10%
refresh_blueprint.default_recipe_blueprint10%

People & History

People (4)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Copyright holders (1)
Copyright holder, Funder
Funders (1)
Copyright holder, Funder
Release 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
605 KB
Installed size
not tracked yet
With dependencies
not tracked yet