Creating R Markdown reports
RStudio has an R Markdown workflow built in; we can use its GUI to create markdown reports in HTML, PDF, slide, or Microsoft Word format. In this recipe, we will introduce how to build an R Markdown report with RStudio.
Getting ready
Ensure you have installed the latest versions of R and RStudio on your operating system. If you have not yet installed RStudio, please visit the following URL to download the most recent version:
How to do it…
Please perform the following steps to create an R Markdown report:
First, click on File | New File | R Markdown on the menu bar:
Next, select the document type in the left-hand side menu, then fill in the Title and Author, and choose the output format in the right-hand side menu:
Moving on, we can now see a markdown document with a YAML header and content in markdown syntax. You can now...