[R] TOC in vignette (knitr::rmarkdown)
Helmut Schütz
he|mut@@chuetz @end|ng |rom beb@c@@t
Mon Aug 26 16:31:47 CEST 2019
Dear all,
I can't figure out how to include a table of contents in a vignette.
What I have now:
---
title: "myPackage"
subtitle: mySubtitle"
author: "Me"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{replicateBE}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
This one works fine in my README.Rdm:
---
title: "myPackage"
output:
github_document:
toc: true
toc_depth: 4
---
Cheers,
Helmut
--
Ing. Helmut Schütz
BEBAC – Consultancy Services for
Bioequivalence and Bioavailability Studies
E helmut.schuetz using bebac.at
W https://bebac.at/
C https://bebac.at/Contact.htm
F https://forum.bebac.at/
More information about the R-help
mailing list