Learn R Programming

zarr (version 0.2.0)

create_zarr: Create a Zarr store

Description

This function creates a Zarr v.3 instance, with a store located on the local file system. The root of the Zarr store will be a group to which other groups or arrays can be added.

Usage

create_zarr(location)

Value

A zarr object.

Arguments

location

Character string that indicates a location on a file system where the data in the Zarr object will be persisted in a Zarr store in a directory. The character string may contain UTF-8 characters and/or use a file URI format. The Zarr specification recommends that the location use the ".zarr" extension to identify the location as a Zarr store.

Examples

Run this code
fn <- tempfile(fileext = ".zarr")
my_zarr_object <- create_zarr(fn)
my_zarr_object$store$root
unlink(fn)

Run the code above in your browser using DataLab