flextable (version 0.5.5)

knit_print.flextable: Render flextable in rmarkdown

Description

Function used to render flextable in knitr/rmarkdown documents. HTML, Word and PowerPoint outputs are supported.

Function htmltools_value return an HTML version of the flextable, this function is to be used within Shiny applications with renderUI().

Usage

# S3 method for flextable
knit_print(x, ...)

Arguments

x

a flextable object

...

further arguments, not used.

HTML chunk options

Result can be aligned with chunk option ft.align that accepts values 'left', 'center' and 'right'.

Word chunk options

Result can be aligned with chunk option ft.align that accepts values 'left', 'center' and 'right'.

Word option 'Allow row to break across pages' can be activated with chunk option ft.split set to TRUE.

To specify a Word style for table caption use chunk option tab.cap.style. The default value is "Table Caption".

PowerPoint chunk options

Position should be defined with options ft.left and ft.top. Theses are the top left coordinates of the placeholder that will contain the table. They default to {r ft.left=1, ft.left=2}.

See Also

Other flextable print function: as_raster, docx_value, format.flextable, htmltools_value, plot.flextable, print.flextable, save_as_html, save_as_image