test_that("extract_hts works", {
expect_snapshot(
error = TRUE,
extract_hts(y ~ x)
)
expect_snapshot(
error = TRUE,
extract_hts(y ~ x + z)
)
expect_snapshot(
extract_hts(y ~ x + z + hts(group))
)
expect_snapshot(
extract_hts(y ~ x + z + hts(group, area))
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.