tests/testthat/helper_general.R

expect_equivalent = function(...) {
    testthat::expect_equal(..., ignore_attr = TRUE)
}

expect_error_fixed = function(...) {
    testthat::expect_error(..., fixed = TRUE)
}

expect_no_error = function(...) {
    testthat::expect_error(..., regexp = NA)
}

expect_no_warning = function(...) {
    testthat::expect_warning(..., regexp = NA)
}

equals <- function(x, y, ...) {
    isTRUE(all.equal(x, y, ...))
}

Try the container package in your browser

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

container documentation built on Nov. 16, 2026, 1:08 a.m.