Unwanted free space with knitr + booktabs

I want to include a table in my latex document, which I create using the knitr package. I "invoke" the table using:

\begin{table}[H]
\begin{centering}
<<r second part}>>=
kable(Per_cond, booktabs=T,row.names=F)
@
\par\end{centering}
\begin{centering}
\protect\caption{Summary of plate}
\par\end{centering}
\label{Table}
\end{table}

The results are amazing, as usual, but, as you can see below, a number of spaces are added every 5 lines.

enter image description here

When created using booktabs=Fthese white spaces disappear (second image).

enter image description here

Do you know a way to get rid of these white spaces or (even better) to choose where they appear (in this case, if they appear after every four lines, they will nicely separate my conditions)? Thank you for your help.

(RStudio 0.98.1062, knitr v 1.9, MikTex 2.9, booktabs packaged 2005-05-04)

+4
1

kable, knitr:::kable_latex, LaTeX. , , :

linesep = if (booktabs) c("", "", "", "", "\\addlinespace")

, ,

linesep = c("", "", "", "\\addlinespace")

4 .

+7

All Articles