Using one markup language for all types of documents – rmarkdown
As mentioned earlier, Markdown is a popular markup language developed by John Gruber.
This language is based on the principle of the supremacy of plain text documents over all other kinds of format.
Plain text is the base for any subsequent kind of manipulation and will be always readable without any particular software. This will let your work be usable and understandable for years to come and will not let you become the hostage of a particular software provider.
Rmarkdown integrates the Markdown language with some facilities for R code integration, which lets you show results from running R code, such as plots or tables, in a Markdown document.
Getting ready
Let’s warm up by installing and loading the required packages:
install.packages(“rmarkdown”) install.packages(“knitr") library(rmarkdown) library(knitr)
How to do it...
Create a new R Markdown document:
Remove the default content from the document, except for YAML parameters...