with_pat: Use Temporary GitHub Access Token
Description
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())
Arguments
new
Temporary GitHub access token
code
Code to execute with the temporary token
.local_envir
The environment to use for scoping.
Details
if NA
is used the GITHUB_PAT
environment variable will be unset.