1. Learn
  2. /
  3. Courses
  4. /
  5. Communicating with Data in the Tidyverse

Exercise

Reference the style sheet

See the new pane in the exercise interface called styles.css? As mentioned in the previous exercise, you can reference an external CSS file in the YAML header of your RMarkdown document like so:

title: "Test"
output:
  html_document:
    css: styles.css

Your CSS from before is now contained in styles.css. It's time to reference styles.css in your YAML header so that the CSS rules are applied to your report.

Instructions

100 XP
  • Reference the external style sheet in the YAML header.