I\'ve previously asked about the commands for converting R Markdown to HTML.
What is a good way to convert R Markdown files to PDF documents?
Only two steps:
Install the latest release "pandoc" from here:
https://github.com/jgm/pandoc/releases
Call the function pandoc in the library(knitr)
pandoc
library(knitr)
library(knitr) pandoc('input.md', format = 'latex')
Thus, you can convert your "input.md" into "input.pdf".