Skip to content

precommit

0.4.3Package record

Pre-Commit Hooks

0packages dependsuggested by 4
11Kdownloads / year
46.3%test coverage
11/13flavors OK

Overview

About

Useful git hooks for R building on top of the multi-language framework 'pre-commit' for hook management. This package provides git hooks for common tasks like formatting files with 'styler' or spell checking as well as wrapper functions to access the 'pre-commit' executable.

Changes in 0.4.3
  • Drop legacy hook tests (#578).
  • Extend pkgdown hook tests for latest release where URLs are checked too (#577).
  • Fix test to pass with new pkgdown error message (#564).
  • fix path resolution for conda (#564).
  • Lint .qmd docs also (#570).
  • Update hook dependencies (#581).

Thanks to all who contributed to this release: @boxydog, @hadley, @IndrajeetPatil, @jcken95, @jeancochrane, @jrdnbradford, @lorenzwalthert, @owenjonesuob, and @TymekDev.

From NEWS.md in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Lorenz Walthert <lorenz.walthert@icloud.com>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Lorenz",
                    family = "Walthert",
                    role = c("aut", "cre"),
                    email = "lorenz.walthert@icloud.com")
as necessary.

CRAN check page ↗

Slowest check: 16.7 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTE2026-06-09
  • ERROR11 OK, 1 NOTE, 1 ERROR2026-06-07
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.4.3
READMEYes · 273 wordsVignettesYes · 7 · dynamicNEWSYes · 100% structured · mentions 0.4.3Citation fileNoWebsiteYes · pkgdown
Help pages
48 (37 internal)includes a package overview page
Examples that run
0%8 never run
Exported functions with examples
44%
Documented parameters
98%
Return-value docs
50%
Help pages citing references
0%

Downloads

11K
CRAN downloads in the past year
Rank #7,250 · ~30/day · ~916/mo
Daily download trend is not available in this view yet.
43730 days
1.2K90 days
11K1 year
Compare downloads with other packages →
Also on97 r2u6 autocran1.8K conda_forge

Repository

276Stars
53Forks
19Open issues
5Open PRs
11Releases
2,266Commits
38Commit identities
pre-commithooksgitvcsworkflow
License file reads as GPL-3.0 · 2,266 commits · Last activity 2026-10-20 · 0% stars, 30d · Default branch at 0.4.3.9032, ahead of CRAN 0.4.3 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
85%
Median days to close, 50 most recently updated closed issues
35
Median days to close, 50 most recently updated closed PRs
8

Stars over time

2025-10-05 · 2652026-09-16 · 276
PracticesBeta

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

Checks run against github.com/lorenzwalthert/precommit on 2026-10-18.

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 (4)
Contributing guideIssue templatesFunding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-17 · The repository has a site deploy workflow

pkgdown site last built 2024-07-23

Reproducibility and dev environment (1)
renv
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdrevdep/
Automation and maintenance (1)
pre-commit
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
27 external dependencies (excludes base and recommended)

Installing precommit adds 17 packages (9 with compiled code, 5.8 MB of source tarballs). Heaviest: fs 1.4 MB, vctrs 1.0 MB, rlang 766 KB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 4
Suggests, most downloaded first

People & History

People (from the free-text Author field) (1)

Maintainer since 0.1.2 (2020)

Releases (12)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • unarchivedReturned to CRAN
    2024-07-23
  • 0.4.3Latest
    record
    2024-07-23 · current release · diff ↗
  • archivedRemoved from CRAN
    2024-07-21
    issues were not corrected in time
  • R
    R 4.4.0 released · 2024-04-24
  • 0.4.2
    record
    2024-04-10 · diff ↗
  • 0.4.1
    record
    2024-03-31 · diff ↗
  • 0.4.0
    record
    2024-01-21 · diff ↗ ·
    added 1 export
    precommit_docopt
  • R
    R 4.3.0 released · 2023-04-21
  • 0.3.2
    record
    2022-07-01 · diff ↗
  • 0.3.1
    record
    2022-06-15 · diff ↗
  • 0.3.0
    record
    2022-05-20 · diff ↗ ·
    added 1 export
    robust_purl
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.2
    record
    2021-12-15 · diff ↗
  • 0.2.1
    record
    2021-12-14 · diff ↗
Show 5 earlier eventsHide 5 earlier events
  • 0.2.0
    record
    2021-12-01 · diff ↗ ·
    added 8 exports
    dirs_R.cache, may_require_permanent_cache, roxygen_assert_additional_dependencies, roxygenize_with_cache, snippet_generate, update_precommit, use_ci, version_precommit
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.3
    record
    2020-10-10 · diff ↗
  • 0.1.2
    record
    2020-06-13
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-06-13
Total releases
12 / 6 yrs
License
GPL-3 OSI
Download size
318 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("precommit")

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

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