Is it possible to left-align the table caption? I am annoyed by the APA6th rules but I have to left-align the table caption somehow.
Take for example this table:
library(knitr)
library(kableExtra)
kable(mtcars[1:10, 1:6], format = "latex", caption = "I need this left-aligned.", booktabs = T) %>%
kable_styling(position = "left") %>%
group_rows("Group 1", 4, 7) %>%
group_rows("Group 2", 8, 10)
The caption will always be centered above the table, even if I left-align the table position with kable_styling(position = "left")
.
EDIT: See here for a temporary solution that worked at least for me.
singlelinecheck=false
does – Shaunshauna