test_that("print", {
if (!requireNamespace("distr6", quietly = TRUE)) {
skip("distr6 not installed.")
}
fit <- akritas(Surv(time, status) ~ ., data = rats[1:10, ])
expect_output(print(fit), "akritas(formula = Surv(time, status) ~ ., data = rats[1:10, ])",
fixed = TRUE)
expect_output(summary(fit), "akritas(formula = Surv(time, status) ~ ., data = rats[1:10, ])",
fixed = TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.