Set up an rmarkdown report
No more chatting now! Let's move to the actual production of our report. We are going to use RStudio, so let's open it and create a new R markdown report:
![](https://static.packt-cdn.com/products/9781787124462/graphics/5c129f3b-b043-4bf4-b38c-11c5439c7a65.png)
We can now specify what kind of document we want to create, which in our case is a Shiny
Document
. I write down the title and my name as the author:
![](https://static.packt-cdn.com/products/9781787124462/graphics/fd6728ff-d2e5-4a58-9a9d-63b1db898923.png)
A non-empty template with a file extension as .rmd
was just created for us:
![](https://static.packt-cdn.com/products/9781787124462/graphics/66d8d2e5-6c2b-4941-83c8-d0e9b21733ea.png)
I will tell you a bit more about Shiny later when we actually use it, but let me give you just a quick intro to it and R markdown so that you can feel more comfortable in going ahead:
- R markdown is basically an R package that provides functions to create various kinds of documents hosting both text and R code outputs. It was a father of a prolific family, which nowadays encompasses packages for writing books directly from R to packages for building websites.
shiny
is an R package that provides functions to build web applications through R codes. It takes care of generating from the R code the...