In collaboration with Garrett Grolemund, RStudio’s teaching specialist, DataCamp has developed a new interactive course to facilitate reproducible reporting of your R analyses. R Markdown enables you to generate reports straight from your R code, documenting your works as an HTML, pdf or Microsoft document. This course is part of DataCamp’s R training path, but can also be taken as a separate course.
A typically frustrating feature of the R language is the ‘for my eyes only’ aspect: once you have finished development – be it an analysis of customer data, a predictive model to judge the effectivity of a new drug or some fancy visualizations of your company’s monthly revenue -, how do you share those results with both technical and non-technical people? R Markdown provides the solution. On top of the core markdown syntax, R users are able to embed R code chunks in their report. These R code chunks generate actual R output that is included in the final document. In addition, these R Markdown documents are fully reproducible: once your underlying R code or data changes, you can simply regenerate the output document.
On the R Markdown tutorial
DataCamp has developed a brand new learning interface specifically for R Markdown exercises. You can edit R Markdown documents and render various output formats in the comfort of your browser. Thus, there is no need for you to install additional software such as RStudio and LaTeX on your personal computer. Through a combination of instructional videos given by Garrett Grolemund, interactive markdown exercises, and multiple choice challenges, you will be familiar with this revolutionary way of reporting quickly and easily.
The R Markdown tutorial features several chapters that cover different topics. First you will be introduced to R Markdown in general and details on narration using markdown (an easy-to-write plain text format). Next, the focus will be on ways to embed your R code directly in your report and the specification of chunk options to customize how your code appears in your rendered document. The third chapter introduces pandoc, a tool that enables you to generate numerous types of output documents, among them HTML documents, beamer presentations, etc. After an introduction to interactive reports based on Shiny, Garrett will conclude by explaining how you can set up R Markdown on your own system.
With R Markdown you have the perfect tool to report on your insights in a reproducible way and share these results straightforwardly. This R Markdown tutorial helps you to easily master its technicalities in the comfort of your browser so you can get started right away!