save_as_image() exports a single flextable to a PNG or SVG file using R’s graphics system.
Captions are not part of the table image. When exporting to PNG or SVG, the caption set by
set_caption() is not included. Captions are intended for document outputs such as Word, HTML, or PDF.Function signature
Parameters
A
flextable object.Path to the output file. Must end with
.png or .svg.Amount of whitespace (in pixels) to add around the table.
Resolution of the output device in DPI.
...
Unused arguments.
Return value
A string containing the full path of the generated file.Examples
See also
gen_grob()— convert a flextable to a grob for more rendering optionssave_as_docx()save_as_html()save_as_pptx()save_as_rtf()