How to read this book
This book may serve you better as a reference book than a textbook. It contains a large number of technical details, and we do not expect you to read it from beginning to end, since you may easily feel overwhelmed. Instead, think about your background and what you want to do first, and go to the relevant chapters or sections. For example:
I just want to finish my course homework (Chapter2 should be more than enough for you).
I know this is an R Markdown book, but I use Python more than R (Go to Section2.7.1).
I want to embed interactive plots in my reports, or want my readers to be able change my model parameters interactively and see results on the fly (Check out Section2.8).
I know the output format I want to use, and I want to customize its appearance (Check out the documentation of the specific output format in Chapter3 or Chapter4). For example, I want to customize the template for my PowerPoint presentation (Go to Section4.4.1).
I want to build a business dashboard highlighting some key figures and indicators (Go to Chapter5).
I heard about
yolo = TRUEfrom a friend, and I’m curious what that means in thexaringan package (Go to Chapter7).I want to build a personal website (Go to Chapter10), or write a book (Go to Chapter12).
I want to write a paper and submit to the Journal of Statistical Software (Go to Chapter13).
I want to build an interactive tutorial with exercises for my students to learn a topic (Go to Chapter14).
I’m familiar with R Markdown now, and I want to generate personalized reports for all my customers using the same R Markdown template (Try parameterized reports in Chapter15).
I know some JavaScript, and want to build an interface in R to call an interested JavaScript library from R (Learn how to develop HTML widgets in Chapter16).
I want to build future reports with a company branded template that shows our logo and uses our unique color theme (Go to Chapter17).
If you are not familiar with R Markdown, we recommend that you read at least Chapter2 to learn the basics. All the rest of the chapters in this book can be read in any order you desire. They are pretty much orthogonal to each other. However, to become familiar with R Markdown output formats, you may want to thumb through the HTML document format in Section3.1, because many other formats share the same options as this format.