R notebook and data.frame printing

How do you control data.frame printing with R notebooks? It seems the YAML df_print has no effect? I often have small data.frames I'd like to print in a notebook that I do not want to be paged i.e. just show it as it would be seen in the console.

I'm pulling my hair out trying to find the answer. Any help would be much appreciated.

Thanks

You should be able to control the rendering at the chunk level.
You can modify a knitr chunk option to not have a paged table, or print raw R output asis
Also, you can format the table yourself to print with other table framework (pander, kable, kableExtra, huxtable, flextable, gt, ...)

I found the solution here; https://github.com/rstudio/rmarkdown/issues/1331
I'm baffled why I cannot find a description of 'paged.print' for a chunk option anywhere? There isn't even a text completion for it when adding inline chunk options? weird!

{r, paged.print=FALSE}
cars[1:10,]

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.