Get the history of when a repository was starred and return it as a tibble.

get_stargazers(org = "NOAA-FIMS", repo = "FIMS")

Arguments

org

The name of the organization that contains the repo. This can also be a user name rather than an organization. The default is "NOAA-FIMS".

repo

The name of the GitHub repository. The default is "FIMS".

Value

A tibble with 24 columns is returned. The first twenty columns are from the JSON data that is returned from the GitHub API and the next four columns are added internally, specifying the GitHub organization (org), the GitHub repository (repo), the date the star was added, and the days since the first star was added to the repository compared when this star was added (day).

Examples

stars <- get_stargazers("NOAA-FIMS", "FIMS")
plot(
  x = stars[["day"]],
  y = stars[["cumulative_stars"]],
  type = "l",
  xlab = "Day since first star",
  ylab = "Cumulative stars"
)