Closed chickymonkeys closed 2 months ago
config_modelsummary(factory_default)
affects the output format when output="default"
.
config_modelsummary(factory_latex)
affects the output format when output="latex"
This is documented in ?config_modelsummary
also setting factory_latex
to kableExtra
with the config function does not restore the behaviour in latex_tabular
Right, but following the same logic you can do:
library(modelsummary)
m1 <- lm(mpg ~ hp, mtcars)
options(modelsummary_factory_default = "latex_tabular")
options(modelsummary_factory_latex_tabular = "kableExtra")
modelsummary(m1)
oops, right, there's no latex_tabular
argument in config_modelsummary()
. You can just use the options()
then.
Hi there,
I have been hitting my head on this for some hours and I cannot really figure it out. I would like to have old behaviour of
modelsummary
back, avoiding drawing tablestinytable
and thetabularray
package when exporting in LaTeX. I have set as indicated in the changelog for 2.0.0config_modelsummary(factory_default = "kableExtra")
but, while when setting output = "latex" it correctly draws atabular
table instead of atabularray
's one, when setting output = "latex_tabular" it keeps drawing withtabularray
.Reproducible example:
sessionInfo()
:Thanks for your help!