tests/testthat/helper-size.R

expect_size <- function(object, n) {
  expect_identical(vec_size(object), vec_cast(n, int()))
}

zap_dimnames <- function(x) {
  attr(x, "dimnames") <- NULL
  x
}

Try the vctrs package in your browser

Any scripts or data that you put into this service are public.

vctrs documentation built on Oct. 13, 2023, 1:05 a.m.