I'm trying to put multiple tables on a single line in a R Markdown document. I'm able to do that by kable %>% kableStyling(... ,position='float_left')
and the tables line up nicely across a page:
However, when resuming text after these tables (headings, text, anything, really), it starts to the right of the last table on the line. Here is a simple example:
---
output:
html_document: default
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
require(kableExtra)
``` and
```{r Test, echo=F}
d1 <- data.frame(Item=c('A','B','C'),Value = c(1,2,3),Units=c('X','Y','Z'))
knitr::kable(d1,format='html') %>%
kable_styling(position='float_left',full_width=F)
```
## Next heading
I would have expected that ## Next heading
would start on a new line. This happens both with format='html' and format='latex':