write_pdf: Write a styledTable object to pdf

View source: R/write_pdf.R

write_pdfR Documentation

Write a styledTable object to pdf

Description

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

Usage

write_pdf(st, file = "table.pdf", resize = TRUE)

Arguments

st

The styledTable object to save.

file

The path where the output file should be saved.

resize

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

See Also

write_png(), 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_pdf("table_image.pdf")

## End(Not run)

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