Description Usage Arguments See Also
Retrieves metadata about a Git repository from GitHub.
github_info()
returns a list as obtained from the GET "/repos/:repo" API.
github_repo()
returns the true repository name as string.
uses_github()
returns a flag that indicates if this repo is GitHub-enabled.
If TRUE
, the "info" and "repo" attributes contain the results of the
corresponding functions. If FALSE
, the "reason" attribute explains what
happened during detection of GitHub status.
1 2 3 4 5 | github_info(path = ".", gh_token = NULL)
github_repo(path = ".", info = github_info(path))
uses_github(path = ".")
|
path |
|
gh_token |
|
info |
|
Other GitHub functions: github_add_key
,
github_create_pat
,
github_create_repo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.