Description Usage Arguments Examples
Create a new application in your github settings (https://github.com/settings/applications). Set the Homepage URL and callback URL as http://localhost:1410
. Then copy the app name, client id, and client secret to your .rprofile
as options. e.g. option(gh_appname = "YOUR_APP")
etc. This function will then automatically read those values. Otherwise specify them inline.
1 2 | github_auth(gh_appname = getOption("gh_appname"),
gh_id = getOption("gh_id"), gh_secret = getOption("gh_secret"))
|
gh_appname |
Github app name |
gh_id |
GitHub client id |
gh_secret |
GitHub secret |
1 2 3 4 | ## Not run:
token <- github_auth()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.