List all projects in the registry. This will call the REST API if the caller is not on the same filesystem as the registry.

listProjects(registry, url, forceRemote = FALSE)

Arguments

registry

String containing a path to the registry.

url

String containing the URL to the Gobbler REST API. Only used for remote access.

forceRemote

Logical scalar indicating whether to force remote access via the API, even if registry is on the same filesystem as the caller.

Value

Character vector of project names.

Author

Aaron Lun

Examples

info <- startGobbler()
removeProject("test", info$staging, url=info$url) # clean out any existing entries
removeProject("more-test", info$staging, url=info$url)
removeProject("even-more-test", info$staging, url=info$url)
   
# Now mocking up the creation of some projects.
createProject("test", info$staging, url=info$url)
createProject("more-test", info$staging, url=info$url)
createProject("even-more-test", info$staging, url=info$url)

# Listing out the projects.
listProjects(info$registry, info$url)
#> [1] "even-more-test" "more-test"      "test"          

# Forcing remote access.
listProjects(info$registry, info$url, forceRemote=TRUE)
#> [1] "even-more-test" "more-test"      "test"