Session Ready
Exercise

Adding the table of contents

Adding a table of contents to your report is a useful way to help your audience navigate through the different sections of your report. It provides an overview of what your report contains, and can help your audience navigate through the report easily. In this exercise, you'll add a table of contents to your report to provide an overview of the topics that the report includes.

Instructions
100 XP
  • Add a colon to the end of the html_document field in the YAML header to further customize the knitted file.
  • Below the html_document field, add a table of contents to the YAML header using the toc field.