Description Usage Arguments Value Examples
This function downloads a file from GitHub in as a binary object.
1 2 3 4 5 6 7 8 9 |
url |
(string) The address of the API endpoint. |
path |
(string) The path to download the file to. |
headers |
(character, optional) Headers to add to the request. Default:
|
accept |
(string, optional) The mime format to accept when making the
call. Default: |
token |
(string or Token, optional) An authorisation token to include
with the request. If |
proxy |
(character, optional) The proxy server to use to connect to the
github API. If |
... |
Ignored. |
A github
string object containing the path, with the attributes:
url: The URLs the request was sent to
request: The type of HTTP request made
status: The HTTP status code returned
header: The HTTP header returned
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Find an issue by title
gh_download(
url = "https://api.github.com/repos/ChadGoymer/githapi/zipball/main",
path = "~/githapi-main.zip"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.