github_auth: Authenticate with GitHub and retrieve a token

Description Usage Arguments Examples

View source: R/jumpin.R

Description

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.

Usage

1
2
github_auth(gh_appname = getOption("gh_appname"),
  gh_id = getOption("gh_id"), gh_secret = getOption("gh_secret"))

Arguments

gh_appname

Github app name

gh_id

GitHub client id

gh_secret

GitHub secret

Examples

1
2
3
4
## Not run: 
token <- github_auth()

## End(Not run)

ropensci/dashboard documentation built on May 27, 2019, 2:25 p.m.