How to prevent cable from splitting between pages?

Knitting in pdf using kable()to draw some tables. I create several tables functionally, so some of them are split between pages. Is there a way to prevent this behavior?

I know that I could just go to a new page after each table, but I would prefer to have multiple objects on the same page.

+4
source share
1 answer

If you export only to PDF, try the following:

knitr::kable(
  my_data,
  format    = "latex",
  longtable = FALSE
)

longtable . knitr:::kable_latex, kable, longtable = FALSE. , longtables.

+3

Source: https://habr.com/ru/post/1684316/


All Articles