Skip to contents

This is a function to get the information about a repository

Usage

get_github_metrics(
  repo,
  token = NULL,
  count = 1e+05,
  data_format = "dataframe",
  time_course = FALSE
)

Arguments

repo

The repository name. So for `https://github.com/fhdsl/metricminer`, it would be `fhdsl/metricminer`

token

You can provide the Personal Access Token key directly or this function will attempt to grab a PAT that was stored using the `authorize("github")` function

count

How many items would you like to receive? default is 100000

data_format

Default is to return a curated data frame. However if you'd like to see the raw information returned from GitHub set format to "raw".

time_course

Should the time course data be collected or only the summary metrics?

Value

Repository summary or time course metrics for a particular GitHub repository as a dataframe

Examples

if (FALSE) {

authorize("github")
metrics <- get_github_metrics(repo = "fhdsl/metricminer")

summary_metrics <- get_github_repo_summary(repo = "fhdsl/metricminer")
timecourse_metrics <- get_github_repo_timecourse(repo = "fhdsl/metricminer")
}