repo_get_archive: Get an archive of a repository

Description Usage Arguments Value Examples

Description

Get an archive of a repository

Usage

1
2
3
repo_get_archive(owner, repo, archive, filepath,
  api_endpoint = Sys.getenv("GITEA_BASE_URL"),
  gitea_token = Sys.getenv("GITEA_PAT"))

Arguments

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 access_token in the package

Value

raw vector

Examples

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)

hrbrmstr/crumpets documentation built on May 4, 2019, 8:40 a.m.