Expand description
vctrs-compatible class wrapper generator (new_vctr / new_rcrd / new_list_of).
Vctrs class R wrapper generator.
Generates an S3 class that integrates with the tidyverse vctrs
package: emits a new_<class> wrapper around vctrs::new_vctr /
new_rcrd / new_list_of (selected via VctrsKind), plus the standard
vec_ptype2 / vec_cast self-coercion methods so the type composes
cleanly inside tibble, dplyr, and tidyr. Pick vctrs when your Rust
type is “a vector of X” and you want first-class tibble columns; use
plain S3/S7 for scalar-like objects.
Constants§
- VCTRS_
IMPORTS 🔒 - The roxygen imports of a vctrs class’s roxygen block.
Functions§
- generate_
vctrs_ class - Generates the R wrapper of a vctrs-compatible S3 class, in the parts the
wrapper writer merges per type (
super::ClassWrapper, #1776).