Package: precommit 0.4.3.9027

precommit: Pre-Commit Hooks

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.

Authors:Lorenz Walthert

precommit_0.4.3.9027.tar.gz
precommit_0.4.3.9027.zip(r-4.7)precommit_0.4.3.9027.zip(r-4.6)precommit_0.4.3.9027.zip(r-4.5)
precommit_0.4.3.9027.tgz(r-4.6-any)precommit_0.4.3.9027.tgz(r-4.5-any)
precommit_0.4.3.9027.tar.gz(r-4.7-any)precommit_0.4.3.9027.tar.gz(r-4.6-any)
precommit_0.4.3.9027.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
precommit/json (API)

# Install 'precommit' in R:
install.packages('precommit', repos = c('https://lorenzwalthert.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lorenzwalthert/precommit/issues

Pkgdown/docs site:https://lorenzwalthert.github.io

On CRAN:

Conda:

githookspre-commitvcsworkflow

10.05 score 273 stars 9 scripts 1.8k downloads 20 exports 17 dependencies

Last updated from:76a02b030f. Checks:6 OK, 3 ERROR. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK218
source / vignettesOK208
linux-release-x86_64OK237
macos-release-arm64OK148
macos-oldrel-arm64OK190
windows-develERROR206
windows-releaseERROR211
windows-oldrelERROR234
wasm-releaseOK149

Exports:autoupdatediff_requires_run_roxygenizedirs_R.cacheinstall_precommitmay_require_permanent_cacheopen_configopen_wordlistpath_pre_commit_execpath_precommit_execprecommit_docoptrobust_purlroxygen_assert_additional_dependenciesroxygenize_with_cachesnippet_generateuninstall_precommitupdate_precommituse_ciuse_precommituse_precommit_configversion_precommit

Dependencies:clidigestfsglueherelifecyclemagrittrpurrrR.cacheR.methodsS3R.ooR.utilsrlangrprojrootvctrswithryaml

Available Hooks
Good to know | Hooks | style-files | readme-rmd-rendered | parsable-R | parsable-roxygen | no-browser-statement | no-print-statement | no-debug-statement | spell-check | roxygenize | deps-in-desc | use-tidy-description | lintr | codemeta-description-updated | pkgdown | renv-lockfile-validate

Last update: 2026-06-24
Started: 2019-10-20

testing

Last update: 2024-07-14
Started: 2021-05-05

hook-order
Rules for editing this document | Hooks with dependencies | Read and write | Read only

Last update: 2024-02-14
Started: 2020-05-05

Continuous Integration
Setting up CI | Emulate a CI run locally | Comparison | pre-commit.ci | GitHub Actions

Last update: 2022-06-14
Started: 2021-11-26

FAQ
It's broken. Missing packages etc. How do I fix it? | How does it work? What's the magic? | How are hooks accessed? What happens if there's no internet connection? | Why do some hooks not give me the same results as running the command interactively? | Can you use it outside RStudio? | Can I use the hooks provided in this package without installing the R package? | How can I make sure that my contributors are using the hooks? | Should I list {precommit} as a dependency of my package in DESCRIPTION? | What if not all people who are committing to this repo want to use the hooks? | How does one create a new pre-commit hook?

Last update: 2022-06-14
Started: 2019-12-03

precommit
Installation | Usage | Caution | Update | Uninstallation

Last update: 2022-06-14
Started: 2022-03-13

Why is this useful?
Why use pre-commit hooks? | Why use the pre-commit framework?

Last update: 2022-06-14
Started: 2019-10-21