
i
i
“K23166” — 2015/1/28 — 9:35 — page 172 — #198
i
i
i
i
i
i
172 CHAPTER 11. SPECIAL TOPICS
Figure 11.1: Generating a new R Markdown file in RStudio
The knit() function operates, by default, on the convention that input files ending with
.Rmd generate a .md (Markdown) file, and files ending with .Rnw generate a .tex (L
A
T
E
X)
file.
Alternatively, a PDF or Microsoft Word file can be generated in RStudio by selecting
New from the R Markdown menu, then clicking on the PDF or Word options. RStudio also
supports the creation of R Presentations using a variant of the R Markdown language.
Instructions and an example can be found by opening a new R presentations document