Skip to content

git2r

0.36.2Package record

Provides Access to Git Repositories

18packages dependsuggested by 16
497.4Kdownloads / year
80.9%test coverage
8/13flavors OK

Overview

About

Interface to the 'libgit2' library, which is a pure C implementation of the 'Git' core methods. Provides access to 'Git' repositories to extract data and running some basic 'Git' commands.

Changes in 0.36.2

CHANGES

  • Use 'pkg-config --static --libs' in the build configuration script on the Darwin platform.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  git2r/tests/checkout.R (.Names: 8)
  git2r/tests/invalid-conf-var.R (.Names: 1)
  git2r/tests/tag.R (.Dim: 1, .Dimnames: 1, .Names: 1)
'.Names' should be changed to 'names'.
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.

CRAN check page ↗

Slowest check: 4.2 min · r-devel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK12 OK2026-04-25
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.36.2
README· In the repository, left out of the releaseVignettesNoNEWSYes · 100% structured · mentions 0.36.2Citation fileNoWebsiteYes · pkgdown
Help pages
113 (1 internal)includes a package overview page
Examples that run
3%3 run in a plain check · 104 never run
Exported functions with examples
97%
Documented parameters
100%
Return-value docs
98%
Help pages citing references
0%

Downloads

497.4K
CRAN downloads in the past year
Rank #607 · ~1.4K/day · ~41.4K/mo
Daily download trend is not available in this view yet.
30.3K30 days
99.1K90 days
497.4K1 year
Compare downloads with other packages →
Also on9.1K r2u195 autocran33.3K conda_forge216 c2d4u

Repository

223Stars
61Forks
91Open issues
5Open PRs
32Releases
2,795Commits
32Commit identities
libgit2libgit2-librarygitgit-clientrrstatsr-package
License file reads as GPL-2.0 · 2,795 commits · Last activity 2026-02-22 · 0% stars, 30d · Default branch at 0.36.2.9000, ahead of CRAN 0.36.2 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
92%
Median days to close, 50 most recently updated closed issues
8
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-02 · 2212026-09-13 · 223
PracticesBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/ropensci/git2r on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux and macOS, and on R-devel

Governance and community (1)
Code of conduct (inherited from ropensci)
Reproducibility and dev environment (1)
Makefile
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
1 external dependency (excludes base and recommended)

Installing git2r adds no packages beyond those that come with R.

Depends (1)
R >= 4.0
Imports (2)
graphicsutils
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none

People & History

People (11)
Author, Maintainer · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Contributor · added in 0.35.0
Show 2 more contributorsHide 2 contributors
Contributor · added in 0.35.0
Contributor · added in 0.35.0

Maintainer since 0.6 (2015)

Listed in earlier versions (1)
no longer listed · 0.6 to 0.33.0
Releases (30)

Pick two releases to compare their code metrics.

Show 27 earlier eventsHide 27 earlier events
  • 0.26.1
    record
    2019-06-30 · diff ↗
  • 0.26.0
    record
    2019-06-29 · diff ↗ ·
    added 1 export
    lookup_commit
  • R
    R 3.6.0 released · 2019-04-26
  • 0.25.2
    record
    2019-03-20 · diff ↗
  • 0.25.1
    record
    2019-03-17 · diff ↗ ·
    added 1 export
    is_tag
  • 0.24.0
    record
    2019-01-07 · diff ↗
  • 0.23.0
    record
    2018-07-17 · diff ↗
  • 0.22.1
    record
    2018-07-10 · diff ↗ ·
    removed 1 export
    libgit2_sha
    added 86 exports
    add, ahead_behind, as.data.frame, blame, blob_create, branch_create, branch_delete, branch_get_upstream, branch_remote_name, branch_remote_url, branch_rename, branch_set_upstream, branch_target, branches, bundle_r_package, checkout, clone, commit, commits, content, contributions, cred_env, cred_user_pass, default_signature, descendant_of, diff, discover_repository, fetch, fetch_heads, git_config_files and 56 more
  • R
    R 3.5.0 released · 2018-04-23
  • 0.21.0
    record
    2018-01-04 · diff ↗
  • 0.20.0
    record
    2017-12-17 · diff ↗
  • 0.19.0
    record
    2017-07-19 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 0.18.0
    record
    2017-01-01 · diff ↗
  • 0.17.0
    record
    2016-12-29 · diff ↗
  • 0.16.0
    record
    2016-11-20 · diff ↗
  • 0.15.0
    record
    2016-05-11 · diff ↗ ·
    added 1 export
    is_branch
  • R
    R 3.3.0 released · 2016-05-03
  • 0.14.0
    record
    2016-03-13 · diff ↗
  • 0.13.1
    record
    2015-12-10 · diff ↗
  • 0.12.1
    record
    2015-12-05 · diff ↗ ·
    added 5 exports
    config, cred_ssh_key, cred_token, remote_ls, ssl_cert_locations
  • 0.11.0
    record
    2015-08-12 · diff ↗ ·
    added 1 export
    punch_card
  • 0.10.1
    record
    2015-05-07 · diff ↗ ·
    added 1 export
    libgit2_sha
  • R
    R 3.2.0 released · 2015-04-16
  • 0.7
    record
    2015-02-23 · diff ↗
  • 0.6
    record
    2015-02-19
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2015-02-19
Total releases
30 / 11 yrs
License
GPL-2 OSI
Minimum R
≥ 4.0
Download size
234 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("git2r")
Widgren, S., Blischak, J., Bryan, J., Carbonetto, P., Chamberlain, S., Csardi, G., Hester, J., Jefferis, G., Ooms, J., Ram, K., & Rosendal, T. (2025). git2r: Provides Access to Git Repositories (Version 0.36.2) [Computer software]. https://doi.org/10.32614/CRAN.package.git2r

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

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