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

Description Usage Arguments Value PAT Examples

Description

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

Usage

1
github_pat(quiet = TRUE)

Arguments

quiet

Should this be loud? default TRUE.

Value

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

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

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

tidytuesdayR documentation built on Feb. 1, 2022, 9:07 a.m.