♣32♣R Markdown
Once an analysis is finished and conclusions can be drawn, it is important to write up a report. Whether that report will look like a slideshow, scientific paper, or a book, some tasks will be quite laborious. For example, saving all plots, then adding them to the document, and – even worse – do the whole cycle again when something changes (new data, a great idea, etc.).
R Markdown is a great solution. R Markdown is a variant to markdown (that is – despite its name – a “markup language”) that is designed to mix text, presentation, and R-code.
RStudio shortens the learning curve by facilitating the creation of a new document (see Figure 32.1 on page 700) and inserting some essential example text in a new document. Most of the content is self-explanatory and hence one can soon enjoy the great results instead of spending time to learn how R Markdown works.
For example, when creating a new file in RStudio we can select ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access