get_commits_stats {GitStats} | R Documentation |
Get commits statistics
Description
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. |
Details
To make function work, you need first to get commits data with
GitStats
. See examples section.
Value
A table of commits_stats
class.
Examples
## Not run:
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")
## End(Not run)
[Package GitStats version 2.1.2 Index]