Description Usage Arguments Value See Also Examples
View source: R/ghr_show_fields.R
Show and pull available fields of a GitHub response.
1 2 3 | ghr_show_fields(gh_response)
ghr_pull(gh_response, field)
|
gh_response |
A list object of class "gh_response". |
field |
Character string giving the name of the the element to extract from the github-response list. |
A character string.
ghr_get gh_branches
1 2 3 4 5 6 7 8 9 10 11 12 | gh_response <- ghr_get("maurolepore/ghr/R")
ghr_show_fields(gh_response)
ghr_pull(gh_response, "name")
# Working with non-default branches
ghr_pull(ghr_get("maurolepore/ghr", ref = "gh-pages"), "path")
# Same
ghr_pull(ghr_get("maurolepore/ghr@gh-pages"), "path")
ghr_pull(ghr_get("maurolepore/ghr/reference@gh-pages"), "path")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.