Using knit2pdf with Rmd files
问题 Is it possible to use the knitr function knit2pdf() directly with R Markdown (Rmd) files? I've seen various tutorials/class notes that seem to suggest it can e.g. here and here (Ctrl+F "knit2pdf" in either). But when I take a simple rmd file (saved as "test.rmd") --- title: "knit2pdf test" author: "A Aaronson" date: "Thursday, February 19, 2015" output: pdf_document --- This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For