vincentarelbundock / modelsummary

Beautiful and customizable model summaries in R.
http://modelsummary.com
Other
911 stars 75 forks source link

Default Table Making Package #756

Closed cmschiller closed 5 months ago

cmschiller commented 5 months ago

Hi Vincent, it took me a long time to figure out that the default table-making package for 'latex' and 'latex_tabular' output apparently changed to something that's not compatible with kableExtra (broke my existing code). It would be nice to remark that somewhere on the package website under the "output" section where it currently says "kableExtra: set output to your destination format (e.g., “latex”, “html”, “markdown”), post-process your table, and use kableExtra::save_kable() function."

Thank you! Christoph

vincentarelbundock commented 5 months ago

Every time a user loads the package this message is printed:

> library(modelsummary)

`modelsummary` 2.0.0 now uses `tinytable` as its default table-drawing backend.
  Learn more at: https://vincentarelbundock.github.io/tinytable/

Revert to `kableExtra` for one session:

  options(modelsummary_factory_default = 'kableExtra')

Change the default backend persistently:

  config_modelsummary(factory_default = 'gt')

Silence this message forever:

  config_modelsummary(startup_message = FALSE)

The breaking change was also noted prominently in NEWS.md

https://modelsummary.com/NEWS.html#section