flextable (version 0.5.1)

htmltools_value: Render flextable in rmarkdown (including Word and PowerPoint output)

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

htmltools_value(x)

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

Arguments

x

a flextable object

...

further arguments, not used.

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.

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