save_tex: Save LaTeX output to a renderable .tex document

View source: R/save_tex.R

save_texR Documentation

Save LaTeX output to a renderable .tex document

Description

This function takes LaTeX output from stargazer, texreg, xtable, etc. and saves it to an output file with the appropriate start and end notes.

Usage

save_tex(latex, file = NULL, landscape = FALSE)

Arguments

latex

Character. The latex output from another function.

file

Character. The (optional) file to save the output to.

landscape

Logical. Should the document be saved as a PDF?

Examples

data("mtcars", envir = environment())
tex <- stargazer::stargazer(mtcars)
save_tex(tex)

UnlikelyVolcano/UnlikelyTools documentation built on March 2, 2024, 4:43 a.m.