test_that("equivalence_test", {
data(mtcars)
m <- lm(mpg ~ gear + wt + cyl + hp, data = mtcars)
x <- equivalence_test(m)
expect_identical(c(nrow(x), ncol(x)), c(5L, 9L))
expect_type(capture.output(equivalence_test(m)), "character")
expect_snapshot(print(x))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.