GitHubRepo: Retrieve GitHub repository information

Description Format Usage Arguments Details Examples

Description

Retrieve GitHub repository information

Format

An R6 class.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
myRepo <- GitHubRepo$new("repo_name", "user_name")
myRepo$get_stats()
myRepo$get_branches()
myRepo$get_issues()
myRepo$get_labels()
myRepo$get_milestones()
myRepo$get_coc()
myRepo$get_license()
myRepo$get_pull_requests()
myRepo$get_releases()
myRepo$get_travis_status()
myRepo$get_appveyor_status()
myRepo$get_coverage()

Arguments

user_name

GitHub user or organization name.

repo_name

Name of the GitHub repository.

Details

To create GitHubRepo objects, you need to use GitHubRepo$new("repo_name", "user_name").

myRepo$get_stats() will return the number of stars, forks and issues of the package.

myRepo$get_branches() will return the name of the branches of the package.

myRepo$get_issues() will return the list of open issues.

myRepo$get_labels() will return the name and color labels used in issues filed in the package.

myRepo$get_milestones() will return the details of milestones associated with the package.

myRepo$get_coc() will return the code of conduct of the package.

myRepo$get_license() will return license of the package.

myRepo$get_pull_requests() will return all the open pull requests.

myRepo$get_releases() will return all the releases of the package on GitHub.

myRepo$get_travis_status() will return the build status of the package from Travis CI.

myRepo$get_appveyor_status() will return the build status of the package from Appveyor.

myRepo$get_coverage() will return code coverage of the package from Codecov.

Examples

1
2
3
4
5
6
7
8
## Not run: 
myRepo <- GitHubRepo$new("dplyr", "tidyverse")
myRepo$get_stats()
myRepo$get_branches()
myRepo$get_travis_status()
myRepo$get_coverage()

## End(Not run)

rsquaredacademy/pkginfo documentation built on Nov. 15, 2018, 9:44 p.m.