Package: altarr 0.1.1.9000

Michael Sumner

altarr: Lazy Chunked Arrays as ALTREP Vectors

Lazy chunked arrays for R, as ALTREP vectors with a 'dim' attribute and no class. Chunks come from a user-supplied fetch function, so any store (object storage, 'Zarr', 'GDAL') can sit behind them. Base R indexing, x[i] and x[cbind(i, j, k)], and reductions such as sum() and mean() become planned, batched reads of only the chunks they need, with a bounded chunk cache. altarr_extract() gives the same for rectangular regions.

Authors:Michael Sumner [aut, cre]

altarr_0.1.1.9000.tar.gz
altarr_0.1.1.9000.zip(r-4.7-x86_64)altarr_0.1.1.9000.zip(r-4.7-arm64)altarr_0.1.1.9000.zip(r-4.6-x86_64)altarr_0.1.1.9000.zip(r-4.6-arm64)altarr_0.1.1.9000.zip(r-4.5-x86_64)
altarr_0.1.1.9000.tgz(r-4.6-x86_64)altarr_0.1.1.9000.tgz(r-4.6-arm64)altarr_0.1.1.9000.tgz(r-4.5-x86_64)altarr_0.1.1.9000.tgz(r-4.5-arm64)
altarr_0.1.1.9000.tar.gz(r-4.7-arm64)altarr_0.1.1.9000.tar.gz(r-4.7-x86_64)altarr_0.1.1.9000.tar.gz(r-4.6-arm64)altarr_0.1.1.9000.tar.gz(r-4.6-x86_64)
altarr_0.1.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
altarr/json (API)

# Install 'altarr' in R:
install.packages('altarr', repos = c('https://hypertidy.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/hypertidy/altarr/issues

Pkgdown/docs site:https://hypertidy.github.io

On CRAN:

Conda:

4.00 score 2 stars 11 exports 0 dependencies

Last updated from:432422dd25. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK78
linux-devel-x86_64OK105
source / vignettesOK192
linux-release-arm64OK82
linux-release-x86_64OK103
macos-release-arm64OK139
macos-release-x86_64OK142
macos-oldrel-arm64OK92
macos-oldrel-x86_64OK157
windows-devel-arm64OK204
windows-devel-x86_64OK105
windows-release-arm64OK217
windows-release-x86_64OK73
windows-oldrel-x86_64OK76
wasm-releaseOK85

Exports:altarraltarr_example_zarraltarr_extractaltarr_fillaltarr_planaltarr_presentaltarr_resetaltarr_statsaltarr_viewaltarr_zarr_v2is_altarr

Dependencies:

Writing a fetch function
1. The smallest fetch function | 2. Test against a reference | 3. What altarr checks for you | 4. One call, many chunks | 5. Dimension order: reverse, never transpose | 6. Types, missing values and unpacking | 7. Recipes: what saveRDS() keeps | 8. Sources must be pinned | 9. Sketches for real backends | 10. Tools while developing

Last update: 2026-11-15
Started: 2026-10-03

Walkthrough: what base R asks a lazy array for
The example store | 1. Opening a store reads nothing | 2. One value reads one chunk | 3. The cache: reading it again is free | 4. Points: x[cbind(i, j, k)] is one planned request | 5. A rectangle: x[i, j, k] reads element by element | 6. The same rectangle, planned | 7. Materialization: when R wants all the data | 8. With a lower limit, materializing is refused | 9. Copies stay lazy until changed | 10. Saving stores the recipe, not the data | Where to go next

Last update: 2026-10-03
Started: 2026-10-03