tinytable
tinytable copied to clipboard
`multipage` + `landscape`
Hard to do. Here's a workaround for LaTeX
```{=latex}
\begin{landscape}
```
```{r manualspots, results='asis'}
library(tinytable)
scm <- read.csv(here::here("txt/fig/spotchecks_manual.csv"), check.names = FALSE)
# allow breaking space
for (i in seq_along(scm)) {
scm[[i]] <- gsub("=", " = ", scm[[i]])
scm[[i]] <- gsub("_", " ", scm[[i]])
}
scm |>
tt(caption = "Summary of manual checks", width = c(1, 1, 1, 1, 3)) |>
format_tt(escape = TRUE) |>
theme_tt("multipage") |>
theme_tt("striped")
```
```{=latex}
\end{landscape}
```
Maybe the landscape extension for Quarto can help implement this for docx files.
Interesting. Have you tried to see if it works out of the box for us? We night not need to change anything here.
Not sure how to do that. My knowledge of tinytable is very basic and I just use save_tt(table, "output.docx")