I have an R markdown in RStudio where a data table is printed. I want to set print options for data frames to control the printed number of rows and columns, as described here .
Here is a minimal example .Rmd file:
--- output: html_document: fig_height: 8 fig_width: 10 df_print: paged --- ```{r} knitr::opts_chunk$set(echo = FALSE) cars ```
Where / how to set rows.print parameter?
I tried this:
--- output: html_document: fig_height: 8 fig_width: 10 df_print: paged rows.print: 25 ---
which does not work (default 10 lines) and this:
```{r} knitr::opts_chunk$set(echo = FALSE, rows.print=25) cars ```
which also does not work.
ds440 source share