Nothing
test_that(
desc = "optional dependencies are noted",
code = {
data(breastcancer, package = "risks")
with_mocked_bindings(
is_package_installed = function(package) FALSE,
expect_error(
object = rifttable(
design = tibble::tibble(
exposure = "receptor",
outcome = "death",
type = "quantreg"
),
data = breastcancer
),
regexp = "package \"quantreg\" must be installed"
)
)
with_mocked_bindings(
is_package_installed = function(package) FALSE,
expect_error(
object = rifttable(
design = tibble::tibble(
exposure = "receptor",
outcome = "death",
type = "irrrob"
),
data = breastcancer
),
regexp = "package \"sandwich\" must be installed"
)
)
with_mocked_bindings(
is_package_installed = function(package) FALSE,
expect_error(
object = tibble::tibble(a = 1) |>
rt_gt(),
regexp = "package \"gt\" must be installed"
)
)
}
)
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.