Nothing
skip_if_not(is_pkg_installed("survey", reference_pkg = "cardx"))
test_that("ard_total_n.survey.design() works", {
expect_snapshot(
survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq) |>
ard_total_n()
)
})
test_that("ard_total_n.survey.design() follows ard structure", {
expect_silent(
survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq) |>
ard_total_n() |>
cards::check_ard_structure(method = FALSE)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.