Unpack a Gobbler path to its combination of project, asset, version, and (optionally) path, for easier use in the various gobbler functions.

unpackPath(path)

Arguments

path

String containing a relative path within the Gobbler registry.

Value

List containing project, asset, version and path. All are strings, except for path, which may be NULL.

Author

Aaron Lun

Examples

unpackPath("project/asset/version/path")
#> $project
#> [1] "project"
#> 
#> $asset
#> [1] "asset"
#> 
#> $version
#> [1] "version"
#> 
#> $path
#> [1] "path"
#> 
unpackPath("project/asset/version")
#> $project
#> [1] "project"
#> 
#> $asset
#> [1] "asset"
#> 
#> $version
#> [1] "version"
#> 
#> $path
#> NULL
#>