Skip to contents

Calculate a sensible column and table width for a huxtable based on its content.

Usage

hux_auto_widths(hux, target = "html", including_headers = FALSE)

Arguments

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).

Value

the huxtable with the width options set.