tests/testthat/helper-snapshot.R

expect_propensity_error <- function(expr) {
  testthat::expect_snapshot(
    error = TRUE,
    cnd_class = TRUE,
    expr
  )
}

expect_propensity_warning <- function(expr) {
  testthat::expect_snapshot(
    cnd_class = TRUE,
    expr
  )
}

Try the propensity package in your browser

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

propensity documentation built on March 3, 2026, 1:06 a.m.