# vctrs

> R package for type-stable vectors and building new S3 vector classes

Source: https://talira.ai/catalog/vctrs-reb377jr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose), [languages / r](https://talira.ai/categories/languages/r)
- Licence: MIT[^2][^3]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [R infrastructure (r-lib)](https://talira.ai/orgs/r-lib.md), [Posit](https://talira.ai/orgs/posit.md)

vctrs is an R package of vector helpers for package developers. It proposes `vec_size()` and `vec_ptype()` as alternatives to `length()` and `class()`, with a framework for size recycling and type coercion built on them; it defines size and type stability as properties functions should have; and it provides a `vctr` base class that makes new S3 vector classes easy to write, with methods for many base generics implemented through a few vctrs generics. Packages use it so their new vector classes work throughout the tidyverse, which is why it keeps its dependencies few. It's part of r-lib and funded by Posit.

## Links

- Website: https://vctrs.r-lib.org/
- GitHub: https://github.com/r-lib/vctrs
- Docs: https://vctrs.r-lib.org/reference/

## Problems it solves

- create a new S3 vector class in R that works with dplyr and tibble
- combine vectors of different types in R without surprising coercions
- write type-stable functions in an R package

## Features

- vec_size() and vec_ptype() with size recycling and type coercion
- a vctr base class for writing new S3 vectors
- methods for base generics through a few vctrs generics
- few dependencies

## Limitations

- It's aimed at package developers: understanding and extending it takes some effort.[^1]

## Trust

Overall: 0.46 out of 1.
Signals: maintenance 0.68, adoption 0.50, momentum 0.16, community 0.65, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 12 commits in the last 90 days
- latest release v0.7.3 7 months ago
- 307 GitHub stars
- 42 contributors
- backed by R infrastructure (r-lib) and Posit

## Sources

[^1]: https://github.com/r-lib/vctrs/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/r-lib/vctrs/blob/main/DESCRIPTION (checked 28 Nov 2026)
[^3]: https://github.com/r-lib/vctrs/blob/main/LICENSE (checked 28 Nov 2026)
