Prepare statistics from the pulled commits data.
Usage
get_commits_stats(gitstats_object, time_interval = c("month", "day", "week"))
Details
To make function work, you need first to get commits data with
GitStats
. See examples section.
Examples
if (FALSE) { # \dontrun{
my_gitstats <- create_gitstats() %>%
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
repos = c("r-world-devs/GitStats", "openpharma/visR")
)
get_commits(my_gitstats, since = "2022-01-01")
get_commits_stats(my_gitstats, time_interval = "week")
} # }