context("mod_effect is working")
test_that("problems with formulas identifying the variable are dealt with correctly", {
model <- lm(mpg ~ hp + cyl, data = mtcars)
expect_error(mod_effect(model))
expect_error(mod_effect(model, ~ gear))
expect_error(mod_effect(model, ~ bogus))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.