From 0645a59de235b930d388659b36b5c4540f975e23 Mon Sep 17 00:00:00 2001 From: Hugo Gruson Date: Sat, 22 Aug 2026 00:05:49 +0200 Subject: [PATCH 1/2] Ensure chunk get indexed when out of order with full length --- R/read_data.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/read_data.R b/R/read_data.R index f5f5437d..5ae3ef95 100644 --- a/R/read_data.R +++ b/R/read_data.R @@ -205,7 +205,7 @@ read_data <- function( # Extract the required elements from the chunk if not a full read. # If a full read, we save an extra copy of the chunk by not subsetting it. - if (!all(chunk_dim == lengths(index_in_chunk))) { + if (!identical(index_in_chunk, lapply(chunk_dim, seq_len))) { chunk <- .extract_chunk(chunk, index_in_chunk) } return(list(chunk, index_in_result)) From 90ef77feab4b3c6def93b510849020b8dad325d9 Mon Sep 17 00:00:00 2001 From: Hugo Gruson Date: Sat, 22 Aug 2026 00:06:19 +0200 Subject: [PATCH 2/2] Bump version --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3b6e4612..6ec05cfe 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: Rarr Title: A Simple and Performant Native R Reader & Writer for Zarr Arrays -Version: 2.1.38 +Version: 2.1.39 Authors@R: c( person("Mike", "Smith", role = c("aut", "ccp"), comment = c(ORCID = "0000-0002-7800-3848", "Maintainer from 2022 to 2025.")),