Provides Access to Git Repositories
Overview
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
- Use 'pkg-config --static --libs' in the build configuration script on the Darwin platform.
From NEWS.md in the release
Install
Health
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'.
- NOTE8 OK, 5 NOTENow
- NOTE11 OK, 2 NOTE2026-07-16
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- 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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
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.
The R CMD check workflow runs on Linux and macOS, and on R-devel
Dependencies
Installing git2r adds no packages beyond those that come with R.
Show all 34 packagesHide all 34 packages
Code & Tests
People & History
Show 2 more contributorsHide 2 contributors
Maintainer since 0.6 (2015)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.36.2Latest
- 0.35.02024-10-21 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 0.33.02023-11-26 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.32.02023-04-12 · diff ↗
- 0.31.02023-01-26 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.30.12022-03-16 · diff ↗
- 0.29.02021-11-22 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.28.02021-01-10 · diff ↗
- 0.27.12020-05-03 · diff ↗
- RR 4.0.0 released · 2020-04-24
Show 27 earlier eventsHide 27 earlier events
- 0.26.12019-06-30 · diff ↗
- 0.26.0
- RR 3.6.0 released · 2019-04-26
- 0.25.22019-03-20 · diff ↗
- 0.25.1
- 0.24.02019-01-07 · diff ↗
- 0.23.02018-07-17 · diff ↗
- 0.22.12018-07-10 · diff ↗ ·
removed 1 export
libgit2_shaadded 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 - RR 3.5.0 released · 2018-04-23
- 0.21.02018-01-04 · diff ↗
- 0.20.02017-12-17 · diff ↗
- 0.19.02017-07-19 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.18.02017-01-01 · diff ↗
- 0.17.02016-12-29 · diff ↗
- 0.16.02016-11-20 · diff ↗
- 0.15.0
- RR 3.3.0 released · 2016-05-03
- 0.14.02016-03-13 · diff ↗
- 0.13.12015-12-10 · diff ↗
- 0.12.12015-12-05 · diff ↗ ·
added 5 exports
config, cred_ssh_key, cred_token, remote_ls, ssl_cert_locations - 0.11.0
- 0.10.1
- RR 3.2.0 released · 2015-04-16
- 0.72015-02-23 · diff ↗
- 0.62015-02-19
- RR 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("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.
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.