write_png: Write a styledTable object to png

View source: R/write_png.R

write_pngR Documentation

Write a styledTable object to png

Description

Use tools::texi2pdf() to compile the output from create_latex_table() to a png and save the file.

Usage

write_png(st, file = "table.png", resize = TRUE)

Arguments

st

a styledTable object to save.

file

the path to the output file.

resize

Should the Png be resized to the dimensions of the table? Default is TRUE.

See Also

write_pdf(), write_excel(), create_latex_table(), append_latex_table(), create_latex_table_body()

Examples

## Not run: 
library(dplyr)
mtcars[1:5, 1:2] %>%
  styled_table %>%
  write_png("table_image.png")

## End(Not run)

R-package/styledTables documentation built on Feb. 6, 2024, 2:21 a.m.