0

I'm trying to generate a html with a table of contents using the YAML header in R Notebook. I've found answers to this question (e.g., Adding a table of contents in an r notebook) but the code still isn't generating a toc on the html. I have specified headers using #, ##, etc

---
title: "CMiller_SentencesTask_Analysis"
author: "Chantal Miller"
output:
  html_notebook:
    toc: yes
---
harre
  • 7,081
  • 2
  • 16
  • 28
Chantal
  • 23
  • 5

1 Answers1

0

Resolved! I forgot to place a space between the heading names and the hashtag e.g.,

Heading 1

rather than

#Heading 1

Chantal
  • 23
  • 5