# within test-my_lm.R
# load data for test
data(mtcars)
test_that("estimated coefficients correct for given input data and formula", {
expect_equal(my_lm(mpg ~ hp + wt, data = mtcars)[, 1],
lm(mpg ~ hp + wt, data = mtcars)$coefficients)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.