Nothing
test_that("ausfertility", {
expect_error(aus_fertility |> life_table())
})
test_that("ausmortality", {
lt <- aus_mortality |>
dplyr::filter(Year == 1950, Sex == "male", Code == "WA") |>
life_table()
expect_true(abs(lt$ex[10] - 60.05) < 1e-3)
})
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.