vincentarelbundock / modelsummary

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

Question: How tu update column's width in Rmarkdown #790

Closed iago-pssjd closed 3 months ago

iago-pssjd commented 3 months ago

I have a modelsummary in an Rmarkdown. Using output = "kableExtra" I would use column_spec(, widths = ...) to update column's width. I see that there is the tt(width = ...) function in the tinytable package, but I can't apply it to a modelsummary object. However, it seems style_tt does not include width argument.

vincentarelbundock commented 3 months ago

As documented in ?modelsummary, you can pass additional arguments directly to modelsummary() --- including width --- and those will be passed automatically to the table-drawing functions like tinytable::tt()

iago-pssjd commented 3 months ago

Thank you!!!