What is the easiest way to produce simple LaTeX from an RMarkdown file, i.e. without the preamble?
In other words, if I have this R code in a code chunk in an
plot(sin(seq(-pi, pi, length.out = 100)))
I would like to produce a
.tex file containing an
\includegraphics statement with the generated figure.
Is this possible, or would I be better off simply using Sweave?