Skip to content

sparsevctrs

0.3.6Package record

Sparse Vectors for Use in Data Frames

5packages depend
1.9Mdownloads / year
92.2%test coverage
10/13flavors OK

Overview

About

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.

Changes in 0.3.6
  • Replaced deprecated ATTRIB() macro with R_altrep_class_name() and R_altrep_class_package() for R 4.6.0 compatibility.

From NEWS.md in the release

Install

Health

CRAN checks
3NOTE10OK
Check messages
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.

CRAN check page ↗

Slowest check: 2.8 min · r-devel-windows-x86_64
Status changes
  • NOTE10 OK, 3 NOTENow
  • NOTE9 OK, 5 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.6
READMEYes · 408 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3.6Citation fileNoWebsiteYes · pkgdown

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

1.9M
CRAN downloads in the past year
Rank #318 · ~5.2K/day · ~157.1K/mo
Daily download trend is not available in this view yet.
113.2K30 days
330K90 days
1.9M1 year
Compare downloads with other packages →
Also on29.7K r2u10 autocran261.4K conda_forge

Repository

27Stars
2Forks
9Open issues
0Open PRs
9Releases
404Commits
3Commit identities
404 commits · Last activity 2026-10-15 · +3.8% stars, 30d · Default branch at 0.3.6.9000, ahead of CRAN 0.3.6 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-07-23 · 212026-09-25 · 27
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

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)

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (2)
cran-comments.mdrevdep/
Show all practicesHide 1 practice
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-01-26
    Seen in the repository: .claude, .claude/skills
    Named in .Rbuildignore: .claude
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1
Imports (3)
LinkingTo (0)
none
Suggests (7)
Enhances (0)
none
Reverse dependencies
5direct
398indirect
Imports 5
Depends, Imports or LinkingTo, most downloaded first

People & History

People (3)
Author, Maintainer since 0.1.0 (2024)
Contributor
Copyright holder, Funder
Releases (9)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.3.6Latest
    record
    2026-01-27 · current release · diff ↗
  • 0.3.5
    record
    2025-12-09 · diff ↗
  • 0.3.4
    record
    2025-05-25 · diff ↗
  • 0.3.3
    record
    2025-04-14 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.3.2
    record
    2025-03-21 · diff ↗
  • 0.3.1
    record
    2025-03-17 · diff ↗
  • 0.3.0
    record
    2025-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.0
    record
    2025-01-22 · diff ↗ ·
    added 7 exports
    has_sparse_elements, sparse_dummy, sparse_mean, sparse_median, sparse_sd, sparse_var, sparsity
  • 0.1.0
    record
    2024-05-31
  • R
    R 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")
Hvitfeldt, E., Posit Software, PBC, & Vaughan, D. (2026). sparsevctrs: Sparse Vectors for Use in Data Frames (Version 0.3.6) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sparsevctrs version 0.3.6 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy