Description Usage Arguments Details Value Author(s) Examples
Retrieve the current number of stars, forks, watchers and open issues of a GitHub repository
1 2 3 | get_repo_metrics(repo)
get_pkg_metrics(pkg)
|
repo |
|
pkg |
|
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.
An object of class c("ghmetrics_tbl", "data.frame") with 2 columns:
repo Name of the repository
stars Number of stars
forks Number of forks
watcher Number of watchers
open_issues Number of open issue
Thomas Neitmann
1 2 3 4 5 6 | ## Not run:
get_repo_metrics("thomas-neitmann/mdthemes")
get_pkg_metrics(c("Rcpp", "scales"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.