get_repo_metrics: Retrieve Metrics of a GitHub Repo

Description Usage Arguments Details Value Author(s) Examples

View source: R/get_stars.R

Description

Retrieve the current number of stars, forks, watchers and open issues of a GitHub repository

Usage

1
2
3

Arguments

repo

character. Repository name(s) in the form user/reponame

pkg

character. Name of an R package.

Details

get_pkg_metrics() is a shortcut for retrieving the metrics of an R package. The function tries to find the GitHub repository of the package. If it succeeds it continues calling get_repo_metrics(). If it fails either a warning or an error is thrown depending on whether a GitHub repo couldn't be found for some or all pkg, respectively.

Value

An object of class c("ghmetrics_tbl", "data.frame") with 2 columns:

Author(s)

Thomas Neitmann

Examples

1
2
3
4
5
6
## Not run: 
get_repo_metrics("thomas-neitmann/mdthemes")

get_pkg_metrics(c("Rcpp", "scales"))

## End(Not run)

thomas-neitmann/ghstars documentation built on June 7, 2020, 4:12 a.m.