test_that("Test get_terms() for lm: multivariate with no interaction", code = {
dat <- iris
mod <- lm("Sepal.Length ~ Sepal.Width + Petal.Length + Species", data=dat)
res <- get_terms(mod)
testthat::expect_equal(res,c("Sepal.Width", "Petal.Length", "Species"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.