get_gh_token: Get the token to be used for GitHub API calls

View source: R/github.R

get_gh_tokenR Documentation

Get the token to be used for GitHub API calls

Description

It is taken from the CRANATGH_GITHUB_TOKEN, GITHUB_PAT or GITHUB_TOKEN environment variables, whichever is found first.

Usage

get_gh_token()

Value

Character scalar, the token, or NA if the environment variable mentioned above are not set.


metacran/cranatgh documentation built on Feb. 11, 2024, 2:20 p.m.