Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/davidgohel/flextable/llms.txt

Use this file to discover all available pages before exploring further.

qflextable() is a shortcut for producing a ready-to-use flextable with a fixed table layout and automatically fitted column widths. It is equivalent to calling flextable(), set_table_properties(layout = "fixed"), and autofit() in sequence. Use qflextable() when you want a sensible default table for quick reporting without manual sizing.

Function signature

qflextable(data)

Parameters

data
data.frame
required
A data frame. Passed directly to flextable().

Return value

An object of class flextable with a fixed table layout and column widths adjusted to fit their content.

Example

ft <- qflextable(head(mtcars))
ft
This is equivalent to:
ft <- flextable(head(mtcars))
ft <- set_table_properties(ft, layout = "fixed")
ft <- autofit(ft)
ft

See also

Build docs developers (and LLMs) love