knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)

gitlogr

CRAN_Status_Badge r badgecreatr::badge_lifecycle("stable")

Overview

{gitlogr} aims to provide a clean way to get your Git commit history and process it in R.

Installation

The development version can be installed from GitHub with:

# install.packages("devtools")
devtools::install_github("aldomann/gitlogr")

Examples

The main function, get_history(), allows to quickly parse the results of git log into an R data frame.

gitlogr::get_history(from = "2021-02-01", to = "2021-02-28") %>% 
  knitr::kable()

The count_commits() function is a wrapper of get_history() that can be used to calculate the amount of commits done in a certain date range.

gitlogr::count_commits(from = "2019-12-01", to = "2019-12-31")


aldomann/gitlogr documentation built on Oct. 25, 2021, 12:06 a.m.