github_with_pat | R Documentation |
withr
-like functions for temporary personal access tokenTemporarily change the GITHUB_PAT
environmental variable for
GitHub authentication. Based on the withr
interface.
with_pat(new, code)
local_pat(new, .local_envir = parent.frame())
new |
Temporary GitHub access token |
code |
Code to execute with the temporary token |
.local_envir |
The environment to use for scoping. |
if new = NA
is used the GITHUB_PAT
environment variable will be unset.
The results of the evaluation of the code argument.
## Not run:
with_pat("1234", print(github_get_token()))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.