Function for interacting with the GitHub API
callGitHubAPI(repoName, token, apiURL = "https://api.github.com",
path = "/user/repos", encoding = c("json", "form"), method = httr::POST)createGitHubRepo(repoName, token)
deleteGitHubRepo(owner, repoName, token)
checkGitHubRepoExists(owner, repoName, token)
Name of repo to interact with
GitHub Personal Access Token: this should be the actual token, not the name of an environment variable
The base URL for the GitHub API, this really should not need to be changed
The API endpoint
The type of encoding for the request, either json of form
The method to be used, as an R function, such as POST or GET
GitHub username
An API status
createGitHubRepo
: Creating a GitHub Repo
deleteGitHubRepo
: Deleting a GitHub Repo
checkGitHubRepoExists
: Check that a GitHub Repo exists
Builds up and executes a GitHub API request