Hi All, I am writing a Vignette with Knitr using devtools ... actually quite awesome. ?However, I would like to create a table of contents. ?I have read the knitr and r markdown instructions on TOC and I can create a TOC in a markdown document but I cannot translate the command to a vignette - maybe doing something wrong. ?Does anyone know if I can create a TOC in a vignette using r-markdown and devtools? Glenn ?
Vignette using knitr, devtools, and R markdown
2 messages · Glenn Schultz, Peter Humburg
Hi Glenn, You should be able to add "toc: true" as an option to the yaml meta data block at the beginning of your vignette. If that isn't working for you you may have to give some more detail on what exactly you are doing and how it is failing. Peter
On Thu, 30 Jul 2015 at 04:08 Glenn Schultz <glennmschultz at me.com> wrote:
Hi All, I am writing a Vignette with Knitr using devtools ... actually quite awesome. However, I would like to create a table of contents. I have read the knitr and r markdown instructions on TOC and I can create a TOC in a markdown document but I cannot translate the command to a vignette - maybe doing something wrong. Does anyone know if I can create a TOC in a vignette using r-markdown and devtools? Glenn
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.