I am trying to fit a fairly large table on a pdf page using Rmarkdown
. The table is too large for one page, but scale_down isn't working. I know from Scale kable table to fit page width that I can scale down the width. How do I force this table to fit on one page. The object m, has 64 rows, and currently only ~50 are being printed.
---
title: "Untitled"
date: "`r format(Sys.time(), '%B %d, %Y')`"
output:
pdf_document: default
html_document: default
---
```{r setup, include=FALSE}
library(knitr)
library(rmarkdown)
library( kableExtra )
m <- rbind( mtcars, mtcars)
m$rows<- 1:nrow( m )
outfinish3 <- knitr::kable( m , format = 'latex', align = 'c' , booktabs=TRUE) %>%
kable_styling(latex_options = c("scale_down"))
```
`r outfinish3 `