Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 345 Bytes

saving-R-output-to-tex-file.md

File metadata and controls

15 lines (11 loc) · 345 Bytes

Saving R output to a .tex file

This is useful for e.g. kable(). The concatenate and print function works as follows

cat(INPUT, file = "output.tex")

Alternatively, for instances where cat() does not work, sink() (function for sending R output to a file) can be utilised as

sink(file = "output.tex")
INPUT
sink()