data(mtcars)
test_that("output is data frame", {
expect_s3_class(my_lm(mpg ~ ., data = mtcars), "data.frame")
})
test_that("non-formula input throws an error", {
expect_error(my_lm(mpg = ., data = mtcars))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.