Authenticate with Google Cloud Storage
gcs_auth_bucket.RdAuthenticates with Google Cloud Storage (GCS) using the gargle package for OAuth2 token fetching, then sets the specified bucket as the global bucket for subsequent GCS operations.
Details
This function uses gargle::token_fetch() to obtain an OAuth2 token with
cloud-platform scope, then authenticates with googleCloudStorageR. It sets
the global bucket so that subsequent GCS operations don't need to specify
the bucket parameter repeatedly.
The function returns the bucket name invisibly, making it suitable for use in pipelines where you want to authenticate and continue processing.
See also
googleCloudStorageR::gcs_auth() for more authentication options