Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/coatless-rpkg/ghapi3

Work In Progress: GitHub API v3.0 implemented in R using the gh package
https://github.com/coatless-rpkg/ghapi3

github github-api r

Last synced: 26 days ago
JSON representation

Work In Progress: GitHub API v3.0 implemented in R using the gh package

Lists

README

        

---
output: github_document
---

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```

[![R-CMD-check](https://github.com/coatless-rpkg/ghapi3/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/ghapi3/actions/workflows/R-CMD-check.yaml)

## ghapi3

The goal of `ghapi3` is to provide a full-featured interface to GitHub's API v3.0.
To do this, we use the [`gh`](https://github.com/r-lib/gh) _R_ package to
access the GitHub API's methods.

### Installation

You can install `ghapi3` from github with:

```r
if(!requireNamespace("remotes", quietly = TRUE)) { install.packages("remotes") }
remotes::install_github("coatless-rpkg/ghapi3")
```

### Implementation

We have support presently for:

```{r}
#| echo: false

# Must be in the environment...
library("ghapi3")

# Dynamically retrieve package functions
funcs = ls("package:ghapi3")
funcs = matrix(funcs, nrow = length(funcs))
colnames(funcs) = c("Implemented Functions")
knitr::kable(funcs)

# Shows parameter call
# lsf.str("package:ghapi3")
```

### License

GPL (>= 2)