I try to document my R package with a vignette and want to print dataframes paged.
It works with
---
title: "Helpfile"
output:
rmarkdown::html_document:
df_print: paged
---
```{r setup}
iris
```
but not with
---
title: "Helpfile"
output:
rmarkdown::html_vignette:
df_print: paged
vignette: >
%\VignetteIndexEntry{Helpfile}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r setup}
iris
```
The help (https://pkgs.rstudio.com/rmarkdown/reference/html_vignette.html) says that I can use df_paged the same way as in html_document. What do I get wrong here?
DT::datatable(iris)sincehtml_vignetteseems too light weight to handle printing.render=paged_printas described here works too.