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()