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

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