Skip to contents

Prepare statistics from the pulled commits data.

Usage

get_commits_stats(gitstats_object, time_interval = c("month", "day", "week"))

Arguments

gitstats_object

A GitStats class object.

time_interval

A character, specifying time interval to show statistics.

Value

A table of commits_stats class.

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")
} # }