Skip to content

CedricMondy/Rapi4GH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapi4GH

This package provides some practical functions to explore GitHub repository characteristics such as commits, issues, forks using the GitHub API.

Installation

if (!require("pak")) install.packages("pak")
pak::pkg_install("CedricMondy/Rapi4GH")

Examples

The function get_gh_info is the main function and is used as an interface to GitHub API, we specify:

  • the GitHub account (owner) and the repo for which we want information,

  • the endpoint ("commits", "issues", "forks"...) we are interested in,

  • an optional query to change the scope of the API call (e.g. "sha=main" to get only commits from the main branch)

  • optional GitHub credentials auth_user and auth_pswd to make identified calls to the API and therefore lowering the restrictions

The different format_ functions (format_commits, format_issues, format_forks) are used to select some of the information from the JSON-like API results (nested lists) and return them as data frames.

Rapi4GH::get_gh_info(
  owner = "CedricMondy", repo = "Rapi4GH",
  endpoint = "commits"
) |> 
  Rapi4GH::format_commits()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages