knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
r badgecreatr::badge_lifecycle("stable")
{gitlogr}
aims to provide a clean way to get your Git commit history and process it in R.
The development version can be installed from GitHub with:
# install.packages("devtools") devtools::install_github("aldomann/gitlogr")
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.