powered by
withr
Temporarily change the GITHUB_PAT environmental variable for GitHub authentication. Based on the withr interface.
GITHUB_PAT
with_pat(new, code)local_pat(new, .local_envir = parent.frame())
local_pat(new, .local_envir = parent.frame())
The results of the evaluation of the code argument.
Temporary GitHub access token
Code to execute with the temporary token
The environment to use for scoping.
if new = NA is used the GITHUB_PAT environment variable will be unset.
new = NA
if (FALSE) { with_pat("1234", print(github_get_token())) }
Run the code above in your browser using DataLab