Learn R Programming

flextable (version 0.7.0)

htmltools_value: flextable as an HTML object

Description

get a div() from a flextable object. This can be used in a shiny application. For an output within "R Markdown" document, use knit_print.flextable.

Usage

htmltools_value(x, ft.align = "center", ft.shadow = TRUE)

Arguments

x

a flextable object

ft.align

flextable alignment, supported values are 'left', 'center' and 'right'.

ft.shadow

use shadow dom, this option is existing to disable shadow dom (set to FALSE) for pagedown that can not support it for now.

Value

an object marked as HTML ready to be used within a call to shiny::renderUI for example.

See Also

Other flextable print function: as_raster(), df_printer(), flextable_to_rmd(), knit_print.flextable(), plot.flextable(), print.flextable(), save_as_docx(), save_as_html(), save_as_image(), save_as_pptx()

Examples

Run this code
# NOT RUN {
htmltools_value(flextable(iris[1:5,]))
# }

Run the code above in your browser using DataLab