gl_archive: Archive a repository

View source: R/projects_and_repos.R

gl_archiveR Documentation

Archive a repository

Description

Archive a repository

Usage

gl_archive(project, ...)

Arguments

project

Project name or id

...

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

## Not run: 
set_gitlab_connection(
  gitlab_url = "https://gitlab.com", 
  private_token = Sys.getenv("GITLAB_COM_TOKEN")
)
gl_archive(project = "<<your-project-id>>", save_to_file = "example-project.zip")

## End(Not run)

gitlabr documentation built on Sept. 13, 2022, 5:06 p.m.