R Markdown Cookbook

Xie, Yihui & Christophe Dervieux & Emily Riederer

Language: English

Publisher: CRC Press LLC

Published: Oct 15, 2021

Description:

R Markdown is a powerful tool for combining analysis and reporting into the single document in the spirit of literate programming and reproducible research. Since the birth of the rmarkdown package in early 2014, R Markdown has grown substantially from a package that supports a few output formats (such as HTML, PDF, and Word) to an extensive and diverse ecosystem that enables the creation of books, blogs, scientific articles, websites, and more. Due to its rapid success, this ecosystem is hard to learn completely meaning that R Markdown users, from novices to advanced users, likely do not know all that these packages have to offer. The R Markdown Cookbook confronts this gap by showcasing short, practical examples of wide-ranging tips and tricks to get the most out of these tools. After reading this book, you will learn how to: Enhance your R Markdown content with diagrams, citations, and dynamically generated text Streamline your workflow with child documents, code chunk references, and caching Control the formatting and layout with Pandoc markdown syntax or by writing custom HTML and LaTeX templates Utilize chunk options and hooks to fine-tune how your code is processed Switch between different language engineers to seamlessly incorporate python, D3, and more into your analysis This book is designed to provide a range of examples of how to extend the functionality of your R Markdown documents. As a cookbook, this guide is recommended to new or intermediate R Markdown users.