https://github.com/fhdsl/githubr
An easier to use GitHub API wrapper for R
https://github.com/fhdsl/githubr
api github r
Last synced: about 2 months ago
JSON representation
An easier to use GitHub API wrapper for R
- Host: GitHub
- URL: https://github.com/fhdsl/githubr
- Owner: fhdsl
- Created: 2023-09-22T12:26:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T15:06:36.000Z (over 2 years ago)
- Last Synced: 2026-02-19T00:47:58.061Z (4 months ago)
- Topics: api, github, r
- Language: R
- Homepage:
- Size: 104 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
Awesome Lists containing this project
README
# githubr
An easier to use GitHub API wrapper for R
**This is really newly under development**
## How to install
``` r
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")
```