Closed jvcasillas closed 5 years ago
Why? There are already functions like knitr::kable
, pander
, kableExtra
, etc. The main problem I have so far is that none of them work well when printing tables to microsoft word. The LaTeX and HTML solutions are quite good, but sometimes I need to produce the same document in multiple formats, or switch to another format depending on the journal.
I am thinking of something like build_table
as a class with methods for lm, lmer, and brms. It would be a wrapper around kable
+ kableExtra
for LaTeX and flextable
for word. You could switch between formats with an argument like latex = TRUE
, similar to the print_model_param
functions.