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.
as_paragraph() builds a paragraph from one or more chunks. Each cell in a flextable contains exactly one paragraph; a paragraph is an ordered sequence of chunks. The resulting paragraph is passed to compose(), mk_par(), add_header_lines(), add_footer_lines(), or footnote() to set cell content.
Function signature
Parameters
Chunk elements that define the paragraph content. Plain character strings are automatically converted to chunks via
as_chunk(). Supported chunk types include:as_chunk()— formatted textas_b()/as_i()— bold / italic shortcutsas_sub()/as_sup()— subscript / superscriptminibar()— inline bar chartas_image()— imagegg_chunk()— ggplotas_equation()— equationhyperlink_text()— hyperlink
A list of chunk elements. If supplied,
... is ignored.Return value
A paragraph object to be used as thevalue argument in compose(), mk_par(), add_header_lines(), add_footer_lines(), or footnote().
Examples
Mix formatted text with an inline minibar:See also
as_chunk()— the primary chunk building blockcompose()— apply a paragraph to selected cellsinline-elements— all chunk helper functionsfootnote()— passas_paragraph()as footnote content