Create a new project in the registry.

createProject(project, staging, url, owners = NULL, uploaders = NULL)

Arguments

project

String containing the name of the project to create.

staging

String containing the path to the staging directory.

url

String containing the URL of the gobbler REST API.

owners

Character vector containing the user IDs for owners of this project. This defaults to the current user.

uploaders

List specifying the authorized uploaders for this project. See the uploaders field in the fetchPermissions return value for the expected format.

Value

NULL is invisibly returned if the project was successfully created.

See also

uploadDirectory, to upload a new version of an asset to an existing project.

removeProject, to remove a project respectively.

Author

Aaron Lun

Examples

info <- startGobbler()
removeProject("test", staging=info$staging, url=info$url) # start with a clean slate.

# Creating our new project.
createProject("test", staging=info$staging, url=info$url)
listProjects(registry=info$registry)
#> [1] "test"