Description Usage Arguments Details
Authentication for accessing GitHub. This will first look for a
GitHub personal token (stored in the GITHUB_TOKEN
or
GITHUB_PAT
environment variables, and then try
authenticating with OAuth.
1 2 3 4 | datastorr_auth(required = FALSE, key = NULL, secret = NULL,
cache = TRUE, token_only = FALSE)
setup_github_token(path = "~/.Renviron")
|
required |
Is authentication required? Reading from public repositories does not require authentication so there's no point worrying if we can't get it. datastorr will set this when appropriate internally. |
key, secret |
The application key and secret. If |
cache |
Logical, indicating whether we should cache the
token. If |
token_only |
return the token only |
path |
Path to environment file; the default is the user environment variable file which is usually a good choice. |
Run this datastorr_auth
function to force setting up
authentication with OAuth. Alternatively, run
setup_github_token
to set up a personal access token.
Either can be revoked at any time
https://github.com/settings/tokens to revke a personal
access token and https://github.com/settings/applications to
revoke the OAuth token.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.