g_commits: Get GitHub metrics on a user or organization's repositories.

View source: R/g_commits.r

g_commitsR Documentation

Get GitHub metrics on a user or organization's repositories.

Description

Get GitHub metrics on a user or organization's repositories.

Usage

  g_commits(userorg = NA, repo = NA, since = NULL,
    until = NULL, author = NULL, limit = 100, sha = NULL,
    timeplot = FALSE)

Arguments

userorg

User or organization GitHub name.

repo

Repository name.

since

Date to start at.

until

Date to stop at.

author

Specify a committer, if none, will return all.

limit

Number of commits to return per call

sha

The commit sha to start returning commits from.

timeplot

Make a ggplot2 plot visualizing additions and deletions by user. Defaults to FALSE.

Value

data.frame or ggplot2 figure.

Examples

## Not run: 
g_commits(userorg = 'ropensci', repo = 'rmendeley')
g_commits(userorg = 'ropensci', repo = 'rfigshare', since='2009-01-01T')
g_commits(userorg = 'ropensci', repo = 'taxize_', since='2009-01-01T', limit=500, timeplot=TRUE)

## End(Not run)

ropensci/gitr documentation built on May 18, 2022, 9:57 a.m.