yihui / printr

Some (magical) printing methods for knitr
https://yihui.org/printr/
118 stars 24 forks source link

Limit table size in latex #34

Open sbliven opened 6 years ago

sbliven commented 6 years ago

I would like an option to limit the maximum rows/cols for latex output. An option similar to options(dplyr.print_max = 10) would be good. There should be some indication of how many rows & columns are omitted, similar to the tibble string output.

I have a few tables with hundreds of rows and columns. In the notebook preview these print nicely as tibble truncated tables (10 rows max), but when rendered to PDF I get pages of tables which also overflow the right margin.