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

Description Usage Arguments Value Examples

View source: R/github.r

Description

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

Usage

1
2
3
  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

1
2
3
4
5
6
## 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 16, 2018, 7:06 a.m.