RMarkdown has quickly become the preferred means of communicating results from
R, eclipsing LaTeX due to RMarkdown’s simplicity to write and that it compiles to many different formats, including
HTML, PDF, Microsoft Word, slideshows and Shiny apps. The RMarkdown format is extendable and templated, enabling customized documents. The workflow for writing RMarkdown is similar to that for LaTeX as detailed in Chapter 27: Normal text (flavored with Markdown) is written and
R code is put in chunks. The style of the chunk delineation is different, but the idea is the same. The files are typically saved as
RMarkdown depends on knitr for evaluating
R code and pandoc for converting ...