#within test-my_lm.R
test_that("my_lm outputs a table", {
expect_is(my_lm(realLm, data = mtcars), "table")
})
test_that("non-table input throws error", {
expect_error(my_lm("a string"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.