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"
)

Try the modelsummary package in your browser

Any scripts or data that you put into this service are public.

modelsummary documentation built on June 8, 2025, 9:32 p.m.