Create a new project in the registry.
createProject(project, staging, url, owners = NULL, uploaders = NULL)
String containing the name of the project to create.
String containing the path to the staging directory.
String containing the URL of the gobbler REST API.
Character vector containing the user IDs for owners of this project. This defaults to the current user.
List specifying the authorized uploaders for this project.
See the uploaders
field in the fetchPermissions
return value for the expected format.
NULL
is invisibly returned if the project was successfully created.
uploadDirectory
, to upload a new version of an asset to an existing project.
removeProject
, to remove a project respectively.
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"