Learn R Programming

gitlabr (version 0.9)

gl_archive: Get zip archive of a specific repository

Description

Get zip archive of a specific repository

Usage

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

Run this code
# NOT RUN {
my_project <- gl_project_connection(project = "example-project", ...) ## fill in login parameters
my_project(gl_archive, save_to_file = "example-project.zip")
# }

Run the code above in your browser using DataLab