Description Usage Arguments Details Value Examples
This function downloads all the files in a commit, plus any folders, into the path specified.
1 | download_commit(ref, repo, path = getwd(), ...)
|
ref |
(string) Either a SHA, branch or tag used to identify the commit. |
repo |
(string) The repository specified in the format: |
path |
(string, optional) The path to the directory to upload. It must be readable. Default: working directory. |
... |
Parameters passed to |
For more details see the GitHub API documentation:
download_commit()
returns the path where the commit is downloaded
to.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Download the head of the main branch to the home directory
download_commit(
ref = "main",
repo = "ChadGoymer/githapi",
path = "~"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.