title: kableExtra rmarkdown tables - aligning grouping row labels and footnotes
body: <p>I am using <code>kableExtra</code> to format some tables in an Rmarkdown document. When running the code below, without any <code>position</code> argument to <code>kable_styling</code>, the grouping row labels (the rows in the table where it says "Group 1" and "Group 2") and the footnotes remain left aligned in relation to the table. This is as I would like it.</p>
  
  <pre><code>```{r cars-table, results='asis'}
  kable(mtcars[1:10, 1:2], format = "html", caption = "Group Rows", 
       col.names = c("MPG[note]", "CYL[note]")) %&gt;%
  kable_styling("striped", full_width = F) %&gt;%
  group_rows("Group 1", 4, 7) %&gt;%
  group_rows("Group 2", 8, 10) %&gt;% 
  add_footnote(c("Some footnote", "Some other footnote"))
  ```
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/naRoC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/naRoC.png" alt="kableExtra_workingtable"></a></p>
  
  <p>But when a <code>position</code> argument is provided to <code>kable_styling</code>, the grouping row labels and footnotes seem to take the opposite alignment, rather than remaining left aligned in relation to the table. I say the opposite alignment, as when I use <code>position = "right"</code>, the grouping row labels and footnotes become left aligned. </p>
  
  <p>The code below demonstrates the issue when using <code>position = "left"</code>.</p>
  
  <pre><code>```{r cars-table, results='asis'}
  kable(mtcars[1:10, 1:2], format = "html", caption = "Group Rows", 
       col.names = c("MPG[note]", "CYL[note]")) %&gt;%
  kable_styling("striped", full_width = F, position = "left") %&gt;%
  group_rows("Group 1", 4, 7) %&gt;%
  group_rows("Group 2", 8, 10) %&gt;% 
  add_footnote(c("Some footnote", "Some other footnote"))
  ```
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/5S6tE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5S6tE.png" alt="kableExtra_notworkingtable"></a></p>
  
  <p>I only load two libraries to make this example and use the defaults when opening an .Rmd document in RStudio.</p>
  
  <pre><code>library(knitr)
  library(kableExtra)
  </code></pre>
  
  <p>What can I do to make the grouping row labels and footnotes left aligned in relation to the table? Thanks.</p>