Skip to content

captain

1.2.0

Running 'git' Pre-Commit Hooks

0packages depend
2.3Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Git hook scripts are useful for identifying simple issues before submission to code review. 'captain' (hook) is an R package to manage and run git pre-commit hooks.

Install

Health

CRAN checks
13OK
Slowest check: 1.4 min · r-oldrel-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 165 wordsVignettesYes · 1 · dynamicNEWS· In the repository, left out of the releaseCitation fileNoWebsiteYes · pkgdown
Help pages
5
Examples that run
0%1 never run
Exported functions with examples
20%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.3K
CRAN downloads in the past year
Rank #19,158 · ~6/day · ~191/mo
Daily download trend is not available in this view yet.
25630 days
66590 days
2.3K1 year
Compare downloads with other packages →
Also on103 r2u13 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
4Releases
34Commits
2Commit identities
precommitprecommit-hooksr
34 commits · Last activity 2026-02-22
Responsiveness
How these are sampled
PRs merged (all time)
88%
Median days to close, 50 most recently updated closed issues
38
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-05-03 · 12026-07-07 · 1
PracticesBeta

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

Checks run against github.com/alexym1/captain on 2026-10-11.

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 (3)
Code of conductContributing guidePR template
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-02-22 · The repository has a site deploy workflow

pkgdown site last built 2026-02-22

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
renv
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-02-22
    Seen in the repository: .github/copilot-instructions.md
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)

Installing captain adds 3 packages (3 with compiled code, 2.1 MB of source tarballs). Heaviest: fs 1.4 MB, cli 629 KB, yaml 106 KB.

Depends (1)
R >= 4.1.0
Imports (3)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.1.1 (2025)
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.2.0Latest
    record
    2026-02-22 · current release · diff ↗ ·
    added 1 export
    toggle_precommit_hook
  • 1.1.1
    record
    2025-09-30
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-09-30
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Download size
250 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("captain")
Yahiaoui Martinez, A. (2026). captain: Running 'git' Pre-Commit Hooks (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.captain

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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

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