Skip to contents

Open a group using file-mode-like semantics.

Usage

zarr_open_group(
  store = NA,
  mode = NA,
  cache_attrs = TRUE,
  synchronizer = NA,
  path = NA,
  chunk_store = NA,
  storage_options = NA,
  zarr_format = 2L
)

Arguments

store

A Store object, or a character string that is coerced to one: an http:// or https:// URL becomes an HttpStore, an s3:// URL becomes an S3Store, a gs:// URL becomes a GcsStore, and anything else is treated as a filesystem path and becomes a DirectoryStore. NA creates a MemoryStore. Remote stores open read-only. See vignette("remote-stores").

mode

: 'r', 'r+', 'a', 'w', 'w-', optional Persistence mode: 'r' means read only (must exist); 'r+' means read/write (must exist); 'a' means read/write (create if doesn't exist); 'w' means create (overwrite if exists); 'w-' means create (fail if exists).

cache_attrs

: bool, optional If True (default), user attributes will be cached for attribute read operations. If False, user attributes are reloaded from the store prior to all attribute read operations.

synchronizer

: object, optional Array synchronizer.

path

: string, bytes, optional Path under which array is stored.

chunk_store

: Store, optional Separate storage for chunks. If not provided, store will be used for storage of both chunks and metadata.

storage_options

Accepted for compatibility with the zarr-python signature but currently ignored. pizzarr configures remote stores with environment variables rather than a per-call options list; see S3Store and vignette("remote-stores").

zarr_format

: int, optional Zarr format version. Use 2L (default) for Zarr V2 or 3L for Zarr V3.

Value

ZarrGroup