Easier to Use API Wrapper for 'GitHub'

This is a 'GitHub' API wrapper for R. < https://docs.github.com/en/rest> It uses the 'gh' package but has things wrapped up for convenient use cases.


githubr

An easier to use GitHub API wrapper for R

This is really newly under development

How to install

if (!("remotes" %in% installed.packages())) {
  install.packages("remotes")
}
remotes::install_github("fhdsl/githubr")

Set up credentials

First, set up your GitHub credentials using usethis::gitcreds_set().

install.packages(c("usethis", "gitcreds"))

# Get a token
usethis::create_github_token()

# Give this token to gitcreds_set()
gitcreds::gitcreds_set()

What you can do (so far)

Now you can rock and roll with githubr.

Return a TRUE/FALSE if a repo exists:

exists <- check_git_repo("jhudsl/OTTR_Template")

if (exists) message("Yup, this repo exists")

Return a data frame of repos' information for an organization or user

repos_df <- get_repos("fhdsl")

Return a data frame of issues' information for a repo

issues_df <- get_issues("jhudsl/OTTR_Template")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("githubr")

0.9.1 by Candace Savonen, 3 years ago


https://github.com/fhdsl/githubr


Report a bug at https://github.com/fhdsl/githubr/issues


Browse source code at https://github.com/cran/githubr


Authors: Candace Savonen [cre, aut]


Documentation:   PDF Manual  


GPL-3 license


Imports gitcreds, dplyr, gh, magrittr, httr

Suggests testthat


See at CRAN