Learn R Programming

tidytuesdayR (version 1.0.3)

github_pat: Return the local user's GitHub Personal Access Token

Description

Extract the GitHub Personal Access Token (PAT) from the system environment for authenticated requests.

Usage

github_pat(quiet = TRUE)

Value

a character vector that is your Personal Access Token, or NULL

Arguments

quiet

Should this be loud? default TRUE.

PAT

A Github 'PAT' is a Personal Access Token. This allows for signed queries to the github api, and increases the limit on the number of requests allowed from 60 to 5000. Follow instructions from <https://happygitwithr.com/github-pat.html> to set the PAT.

Examples

Run this code

## if you have a personal access token saved, this will return that value
github_pat()

Run the code above in your browser using DataLab