Reproducible example (if you have rstudio):
- File | New | R Markdown
- Knit to html, saving as
test
:
Navigate to working directory
In a terminal (with pandoc installed) type
pandoc -s test.md -t latex -o test.tex
(results pasted here)
- Convert to pdf with pdflatex (see result here)
Or skip the tex stage by going directly to .pdf:
pandoc -s test.md -t latex -o test2.pdf
The results are good, but seem like a lot of steps given that knitr incorporates sweave. It should be able to convert from .Rmd to .tex or .pdf directly. Right?