Get the bucket name for the cloud storage location.
Examples
hub_path <- withr::local_tempdir()
example_hub <- "https://github.com/hubverse-org/example-complex-forecast-hub.git"
gert::git_clone(url = example_hub, path = hub_path)
get_s3_bucket_name(hub_path)
#> [1] "example-complex-forecast-hub"
# Get config info from GitHub
get_s3_bucket_name(
"https://github.com/hubverse-org/example-complex-forecast-hub"
)
#> [1] "example-complex-forecast-hub"