gl_archive: Get zip archive of a specific repository

Description Usage Arguments Value Examples

Description

Get zip archive of a specific repository

Usage

1
gl_archive(project, save_to_file = tempfile(fileext = ".zip"), ...)

Arguments

project

Project name or id

save_to_file

path where to save archive; if this is NULL, the archive itself is returned as a raw vector

...

further parameters passed on to gitlab API call, may include parameter sha for specifying a commit hash

Value

if save_to_file is NULL, a raw vector of the archive, else the path to the saved archived file

Examples

1
2
3
4
5
## Not run: 
my_project <- gl_project_connection(project = "example-project", ...) ## fill in login parameters
my_project(gl_archive, save_to_file = "example-project.zip")

## End(Not run)

statnmap/gitlab2r documentation built on Aug. 8, 2020, 12:07 a.m.