I do this when knitting on .pdf using latex commands and minipacks. I do not think you will need to install this.
\centering \begin{minipage}{0.4\textwidth} ```{r} Use your kable command here to create your first table knitr::kable(data[c(rownum),],format = "latex") ``` \end{minipage} \begin{minipage}{0.4\textwidth} ```{r} Use your kable command here to create your second table knitr::kable(data[c(rownum),],format = "latex") ``` \end{minipage} \flushleft
The \ centering and \ flushleft commands are your preference and do what you expect. Two mini-disk commands place tables next to each other. you can place more than two bytes to play with the {0.4 \ textwidth} part, which means that the table can take up 0.4 text widths.
Hope this helps!
source share