gist_auth {gistr} | R Documentation |
Authorize with GitHub.
Description
This function is run automatically to allow gistr to access your GitHub account.
Usage
gist_auth(app = gistr_app, reauth = FALSE)
Arguments
app |
An |
reauth |
(logical) Force re-authorization? |
Details
There are two ways to authorise gistr to work with your GitHub account:
Generate a personal access token with the gist scope selected, and set it as the
GITHUB_PAT
environment variable per session usingSys.setenv
or across sessions by adding it to your.Renviron
file or similar. See https://help.github.com/articles/creating-an-access-token-for-command-line-use for helpInteractively login into your GitHub account and authorise with OAuth.
Using GITHUB_PAT
is recommended.
Examples
## Not run:
gist_auth()
## End(Not run)
[Package gistr version 0.9.0 Index]