--- title: "Zarr Operations Cookbook" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Zarr Operations Cookbook} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", out.width = "100%" ) ``` This vignette covers common zarr array operations: persistent storage, compression, resizing, filters, and advanced indexing. ```{r} library(pizzarr) ``` ## Persistent arrays Create an array on disk, close the session, and reopen it later. ```{r} path <- file.path(tempdir(), "example.zarr") # Create a persistent array backed by a DirectoryStore z <- zarr_open_array( store = path, mode = "w", shape = c(5, 10), chunks = c(5, 5), dtype = "