View source: R/zz-api-huxtable-utils.R
hux_auto_widths | R Documentation |
Calculate a sensible column and table width for a huxtable based on its content.
hux_auto_widths(hux, target = "html", including_headers = FALSE)
hux |
the huxtable |
target |
the expected output (could be "docx"/"odt", "xlsx") which are the only options that matter |
including_headers |
Should we try and fit the header contents as well (TRUE) or let those wrap (FALSE). |
the huxtable with the width options set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.