gs_bucket function

Connect to a Google Cloud Storage (GCS) bucket

Connect to a Google Cloud Storage (GCS) bucket

gs_bucket() is a convenience function to create an GcsFileSystem object that holds onto its relative path

gs_bucket(bucket, ...)

Arguments

  • bucket: string GCS bucket name or path
  • ...: Additional connection options, passed to GcsFileSystem$create()

Returns

A SubTreeFileSystem containing an GcsFileSystem and the bucket's relative path. Note that this function's success does not guarantee that you are authorized to access the bucket's contents.

Examples

bucket <- gs_bucket("voltrondata-labs-datasets")
  • Maintainer: Jonathan Keane
  • License: Apache License (>= 2.0)
  • Last published: 2025-02-26