Description Usage Arguments Value Examples
Get an archive of a repository
1 2 3 | repo_get_archive(owner, repo, archive, filepath,
api_endpoint = Sys.getenv("GITEA_BASE_URL"),
gitea_token = Sys.getenv("GITEA_PAT"))
|
owner |
owner of the repo |
repo |
name of the repo |
archive |
archive to download, consisting of a git reference and archive |
api_endpoint |
URL prefix for your gitea server (no trailing '/') |
gitea_token |
NOTE: we use |
raw vector
1 2 3 4 5 6 | ## Not run:
x <- repo_get_archive("hrbrmstr", "gdns", "", "master.zip")
tf <- tempfile(fileext = ".zip")
writeBin(x, con = tf, useBytes=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.