save a flextable as a png, pdf or jpeg image.

save_as_image(x, path, zoom = 3, expand = 10)

Arguments

x

a flextable object

path

image file to be created. It should end with .png, .pdf, or .jpeg.

zoom, expand

parameters used by webshot function.

Note

This function requires package webshot.

See also

Examples

ft <- flextable( head( mtcars ) ) ft <- autofit(ft) tf <- tempfile(fileext = ".png")
# NOT RUN { if( require("webshot") ){ save_as_image(x = ft, path = "myimage.png") } # }