source("helpers.R")
requiet("tinysnapshot")
using("tinysnapshot")
# raw html output
mod <- lm(hp ~ mpg, data = mtcars)
expect_snapshot_print(
print_html(modelsummary(mod, gof_omit = ".*")),
"html-gof_omit.html") |> suppressWarnings()
# PR 538
mod <- lm(mpg ~ hp + factor(cyl), data = mtcars)
tab <- msummary(mod, stars = TRUE, output = "html")
expect_true(grepl("\\<", tab))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.