Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pre-commit hooks for R projects

License

NotificationsYou must be signed in to change notification settings

lorenzwalthert/precommit

Repository files navigation

editor_options
markdown
wrap
72

CRAN statusLifecycle: stableR build status

Pre-commit hooks are tests that run each timeyou attempt to commit. If the tests pass, the commit will be made,otherwise not. A very basic test is to check if the code is parsable,making sure you have not forgotten a comma, brace or quote. You can runhooks locally and/or in the cloud:

  • As a check before local commits: This requires installingpre-commit.

  • As a CI check withhttps://pre-commit.ci: If you want to enforcepassing hooks on pull requests (and auto-fix trivial problems likestyling) even if the committer does not have a local installation.

Goals of the package

The goal of this package is to twofold:

  • Provide aset ofhooksthat are useful when your git repo contains R code.

  • Provideusethis-likefunctionality for common tasks such as installation and set-up andconfig file modification.

Why do I need pre-commit hooks?

ByMaraAverick

For a more in-depth explanation and even more reasons, seevignette("why-use-hooks").

Documentation

The following online docs are available:

These only cover the functionality added on top of the pre-commitframework by this package. Everything else is covered in the extensiveonline documentation of the pre-commitframework itself, including how to create hooks for actions likegit push orgit checkout, create local hooks etc.

About

pre-commit hooks for R projects

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors36

Languages


[8]ページ先頭

©2009-2025 Movatter.jp