27. Reproducibility and Reports with knitr

Successfully delivering the results of an analysis can be just as important as the analysis itself, so it is important to communicate them in an effective way. This can be a written report, a Web site of results, a slideshow or a dashboard. In this chapter we focus on reports, which are made remarkably easy using knitr, a package written by Yihui Xie. Chapter 28 covers writing Web pages and slideshows with RMarkdown and Chapter 29 goes over building Shiny dashboards. knitr was initially created as a replacement for Sweave for the creation of PDF documents using LaTeX interweaved with R code and the generated results. It has since added the capability to work with Markdown for generating a broad range ...

Get R for Everyone: Advanced Analytics and Graphics, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.