tests/testthat/helpers-types.R

expect_lossy_cast <- function(...) {
  expect_error(class = "vctrs_error_cast_lossy", ...)
}

expect_incompatible_type <- function(...) {
  expect_error(class = "vctrs_error_incompatible_type", ...)
}

Try the haven package in your browser

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

haven documentation built on July 10, 2023, 2:04 a.m.