I want to print the content of a data.table
to a Markdown document out of R-Studio. However, the ouput is somewhat wider, so I decreased the font, as described here: Code chunk font size in Rmarkdown with knitr and latex
However, even when decreasing the font to tiny, the line break remains although there is plenty of space to have the columns adjacent. I wonder how this can be achieved.
---
title: "mwe"
output: pdf_document
---
```
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(data.table)
dat <- data.table(id=1:5,num=31:35,text=c("a","b","c","d","here you can find some long text to artificially widen this text column and demonstrate the problem"))
```
Here is some text.
\tiny
```{r}
dat
```