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

View source: R/github.r

github_commitsR Documentation

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

Description

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

Usage

  github_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: 
github_commits(userorg = 'ropensci', repo = 'rmendeley')
github_commits(userorg = 'ropensci', repo = 'rfigshare', since='2009-01-01T')
github_commits(userorg = 'ropensci', repo = 'taxize_', since='2009-01-01T', limit=500, timeplot=TRUE)

## End(Not run)

ropensci/sandbox documentation built on May 18, 2022, 7:32 p.m.