Skip to contents

Convenience function to open a group or array using file-mode-like semantics.

Usage

zarr_open(store = NA, mode = NA, path = NA, ...)

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).

path

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

...

Additional arguments to pass to zarr_open_array or zarr_open_group.

Value

ZarrArray or ZarrGroup