test_that("printing works", {
l <- lm_model(hp ~ cyl)
nb <- glm_nb_model(hp ~ cyl)
fit <- fit(list(l=l,nb=nb), mtcars)
pred <- predict(fit)
expect_snapshot(print(fit))
expect_snapshot(print(pred))
expect_snapshot(print(pred$result[[1]]))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.