Does the current session have a GitHub personal access token?
Source:R/system-check-scalar-hasGithubPat.R
check-scalar-hasGithubPat.Rd
Required for package installs from GitHub, otherwise will hit rate limit.
Examples
## TRUE ====
Sys.setenv("GITHUB_PAT" = "XXX")
hasGithubPat()
#> [1] TRUE
## FALSE ====
Sys.setenv("GITHUB_PAT" = "")
hasGithubPat()
#> [1] FALSE