Description Usage Arguments Value
This avoids the 1MB limit of the content API and uses [gh::gh] to deal with authorization and such. See https://developer.github.com/v3/git/blobs/ and https://gist.github.com/noamross/73944d85cad545ae89efaa4d90b049db
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
url |
the URL of the file to download via API, of the form ':owner/:repo/blob/:path |
ref |
the reference of a commit: a branch name, tag, or commit SHA |
owner, repo, path |
alternate way to specify the file. These will override values in 'url' |
to_disk, destfile |
write file to disk (default=TRUE)? If so, use the name in 'destfile', or the original filename by default |
.token, .api_url, .method, .limit, .send_headers |
arguments passed on to [gh::gh] |
Either the local path of the downloaded file (default), or a raw vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.