github_repo: 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
  github_repo(userorg = NA, repo = NA, return_ = "show")

Arguments

userorg

User or organization GitHub name.

repo

Repository name.

return_

what to return, one of: show (raw data), allstats, watchers, open_issues, or forks

Value

json

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
github_auth()
options(useragent='ropensci')
github_repo(userorg = 'ropensci', repo = 'rmendeley')
github_repo(userorg = 'hadley', repo = 'ggplot2')
github_repo(userorg = 'hadley', repo = 'ggplot2', 'allstats')
github_repo(userorg = 'hadley', repo = 'ggplot2', return_ = 'forks')

## End(Not run)

ropensci/sandbox documentation built on May 16, 2018, 7:06 a.m.