R: Render flextable in rmarkdown (including Word output)

htmltools_value {flextable} | R Documentation

## Render flextable in rmarkdown (including Word output)

### Description

Function used to render flextable in knitr/rmarkdown documents. HTML and Word 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 class 'flextable'
    knit_print(x, ...)

### Arguments

`x` | a `flextable` object
`...` | further arguments, not used.

### Note

For Word (docx) output, if pandoc version >= 2.0 is used, a raw XML block with the table code will be inserted. If pandoc version < 2.0 is used, an error will be raised. Note also that insertion of images is not supported with rmarkdow for Word documents.

### Author(s)

Maxim Nazarov

[Package flextable version 0.4.5 Index]