1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Communicating with Data in the Tidyverse

Connected

Exercises

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.

คำแนะนำ

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