write_pdf | R Documentation |
Use tools::texi2pdf()
to compile the output from
create_latex_table()
to a pdf and save the file.
write_pdf(st, file = "table.pdf", resize = TRUE)
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 |
write_png()
, write_excel()
, create_latex_table()
, append_latex_table()
, create_latex_table_body()
## Not run:
library(dplyr)
mtcars[1:5, 1:2] %>%
styled_table %>%
write_pdf("table_image.pdf")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.