createRepository: Create a repository

Description Usage Arguments Value Examples

View source: R/repo_funcs.R

Description

Creates a new, empty repository. When a repository with the given name already exists, it is overwritten, unless a parameter override with value FALSE is passed.

Usage

1
2
createRepository(catalog, repo, expectedSize = NULL, index = NULL,
  override = FALSE, restore = NULL, nocommit = NULL)

Arguments

catalog

Catalog object specifying username, password, and catalog to work on.

repo

Id for repository you want to create.

expectedSize

Specifies the expected size of the repository.

index

Can be specified mulitple times in a list. Should hold index names, and is used to configure the set of indices created for the store.

override

Default TRUE

restore

Restore the repository.

nocommit

Boolean

Value

An object of ag with the response and given url.

Examples

1
2
3
4
5
6
7
## Not run: 
service = service("localhost","user","password")
cat = catalog(service,"root")
createRepository(cat,repo = "test",
expectedSize = 100,index = NULL,override = "true",restore = NULL,nocommit = 1)

## End(Not run)

baasman/allegRo documentation built on June 4, 2017, 12:11 a.m.