flextable (version 0.5.11)

save_as_html: Save a Flextable in an HTML File

Description

save a flextable in an HTML file. This function is useful to save the flextable in HTML file without using R Markdown (it is highly recommanded to use R Markdown instead).

Usage

save_as_html(x, path, encoding = "utf-8")

Arguments

x

a flextable object

path

HTML file to be created

encoding

encoding to be used in the HTML file

See Also

Other flextable print function: as_raster(), docx_value(), htmltools_value(), knit_print.flextable(), plot.flextable(), print.flextable(), save_as_docx(), save_as_image(), save_as_pptx()

Examples

Run this code
# NOT RUN {
ft <- flextable( head( mtcars ) )
tf <- tempfile(fileext = ".html")
save_as_html(ft, tf)
# }

Run the code above in your browser using DataLab