Sparse Vectors for Use in Data Frames
Overview
Provides sparse vectors powered by ALTREP (Alternative Representations for R Objects) that behave like regular vectors, and can thus be used in data frames. Also provides tools to convert between sparse matrices and data frames with sparse columns and functions to interact with sparse vectors.
- Replaced deprecated
ATTRIB()macro withR_altrep_class_name()andR_altrep_class_package()for R 4.6.0 compatibility.
From NEWS.md in the release
Install
Health
NOTEcompiled coder-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
r-oldrel-macos-arm64, r-oldrel-macos-x86_64
File ‘sparsevctrs/libs/sparsevctrs.so’: Found non-API call to R: ‘DATAPTR’ Compiled code should not call non-API entry points in R. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual, and section ‘Moving into C API compliance’ for issues with the use of non-API entry points.
r-oldrel-windows-x86_64
File 'sparsevctrs/libs/x64/sparsevctrs.dll': Found non-API call to R: 'DATAPTR' Compiled code should not call non-API entry points in R. See 'Writing portable packages' in the 'Writing R Extensions' manual, and section 'Moving into C API compliance' for issues with the use of non-API entry points.
- NOTE10 OK, 3 NOTENow
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 26 (1 internal)includes a package overview page
- Examples that run
- 100%24 run in a plain check (4 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 98%
- Median days to close, 50 most recently updated closed issues
- 12
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/r-lib/sparsevctrs on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-15 · The repository has a site deploy workflow
pkgdown site last built 2025-12-10, before release 0.3.6 (2026-01-27)
Show all practicesHide 1 practice
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-01-26Seen in the repository: .claude, .claude/skillsNamed in .Rbuildignore: .claude
Dependencies
Installing sparsevctrs adds 5 packages (4 with compiled code, 2.6 MB of source tarballs). Heaviest: vctrs 1.0 MB, rlang 766 KB, cli 629 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.3.6Latest
- 0.3.52025-12-09 · diff ↗
- 0.3.42025-05-25 · diff ↗
- 0.3.32025-04-14 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.3.22025-03-21 · diff ↗
- 0.3.12025-03-17 · diff ↗
- 0.3.02025-03-10 · diff ↗ ·
added 10 exports
sparse_addition_scalar, sparse_division_scalar, sparse_is_na, sparse_lag, sparse_multiplication, sparse_multiplication_scalar, sparse_replace_na, sparse_sqrt, sparse_subtraction_scalar, sparse_which_na - 0.2.02025-01-22 · diff ↗ ·
added 7 exports
has_sparse_elements, sparse_dummy, sparse_mean, sparse_median, sparse_sd, sparse_var, sparsity - 0.1.02024-05-31
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-05-31
- Total releases
- 9 / 2 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Download size
- 92 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sparsevctrs")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.