Learn R Programming

gitlabr (version 2.0.1)

gl_archive: Archive a repository

Description

Archive a repository

Usage

gl_archive(project, ...)

Value

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

Arguments

project

Project name or id

...

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

Examples

Run this code
if (FALSE) {
set_gitlab_connection(
  gitlab_url = "https://gitlab.com", 
  private_token = Sys.getenv("GITLAB_COM_TOKEN")
)
gl_archive(project = "<>", save_to_file = "example-project.zip")
}

Run the code above in your browser using DataLab