
withr
-like functions for temporary personal access token
Source: R/github_with_pat.R
github_with_pat.Rd
Temporarily change the GITHUB_PAT
environmental variable for
GitHub authentication. Based on the withr
interface.
Usage
with_pat(new, code)
local_pat(new, .local_envir = parent.frame())
Examples
if (FALSE) { # \dontrun{
with_pat("1234", print(github_get_token()))
} # }