Description Usage Arguments Value Examples
Get a file from a repository
1 2 3 | repo_get_raw_file(owner, repo, filepath,
api_endpoint = Sys.getenv("GITEA_BASE_URL"),
gitea_token = Sys.getenv("GITEA_PAT"))
|
owner |
owner of the repo |
repo |
name of the repo |
filepath |
filepath of the file to get |
api_endpoint |
URL prefix for your gitea server (no trailing '/') |
gitea_token |
NOTE: we use |
if MIME type was intuited and httr::content()
can decode it, then a decoded
object, otherwise a raw vector
1 2 3 4 5 | ## Not run:
repo_get_raw_file("hrbrmstr", "ggalt", "/man/figures/coordproj01.png")
repo_get_raw_file("hrbrmstr", "securitytxt", "/R/RcppExports.R")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.