inst/tinytest/test-corner-cases.R

# duplicate names are padded
mod <- list(
    "a" = lm(hp ~ mpg, mtcars),
    "a" = lm(hp ~ mpg + drat, mtcars))

tab <- msummary(mod, output = "data.frame")
expect_true(all(c("a", "a ") %in% colnames(tab)))

tab <- msummary(dvnames(mod), output = "data.frame")
expect_true(all(c("hp", "hp ") %in% colnames(tab)))

# Issue #565
mod <- lm(mpg ~ 0 + hp + drat, mtcars)
expect_warning(
    modelsummary(mod, output = "markdown", standardize = "refit"),
    pattern = "standardized")
vincentarelbundock/gtsummary documentation built on Nov. 6, 2024, 11:07 p.m.