flextable (version 0.5.11)

save_as_docx: save flextable objects in an Word file

Description

sugar function to save flextable objects in an Word file.

Usage

save_as_docx(..., values = NULL, path)

Arguments

...

flextable objects, objects, possibly named. If named objects, names are used as titles.

values

a list (possibly named), each element is a flextable object. If named objects, names are used as titles. If provided, argument ... will be ignored.

path

Word file to be created

See Also

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

Examples

Run this code
# NOT RUN {
ft1 <- flextable( head( iris ) )
tf <- tempfile(fileext = ".docx")
save_as_docx(ft1, path = tf)


ft2 <- flextable( head( mtcars ) )
tf <- tempfile(fileext = ".docx")
save_as_docx(`iris table` = ft1, `mtcars table` = ft2, path = tf)
# }

Run the code above in your browser using DataCamp Workspace