From the course: Creating Interactive Presentations with Shiny and R
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Chunk options and CSS
From the course: Creating Interactive Presentations with Shiny and R
Chunk options and CSS
- [Voiceover] To control how the output of R code looks in your presentations, you need to use Chunk options. And to control the overall look of your presentations, you need to use CSS. So, in the new version of RStudio, released in February 2016, a new cog icon was added to code chunks, allowing to easily change individual code chunk options. There was also a new setup code chunk added to the R Markdown templates, that makes it easy to set global chunk options. And finally, overall slide styles are controlled using CSS, allowing you to use (indistinct) from other web assets inside of your presentations. I personally choose to make my presentations look like Google Slides with my CSS. And I've included that CSS file in the exercises. So, we're going to navigate to the Exercise Files and create a project, because there's a couple of R Markdown presentations I want to work on. So, if I go to Project in the right-hand corner, go to New Project, select Existing Directory. I'll navigate to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.