Skip to contents

Required for package installs from GitHub, otherwise will hit rate limit.

Usage

hasGithubPat()

Value

TRUE on success; FALSE on failure, with cause set.

Note

Updated 2019-10-04.

Examples

## TRUE ====
Sys.setenv("GITHUB_PAT" = "XXX")
hasGithubPat()
#> [1] TRUE

## FALSE ====
Sys.setenv("GITHUB_PAT" = "")
hasGithubPat()
#> [1] FALSE