Can't put 2 st function tables in one Rmarkdown document
Conny42 opened this issue · comments
I really like this package and the nice output. Thanks for creating it.
But I'm having real trouble using the st () table function. Not sure if it's just me, or a bug in the function.
A)When I'm using st() to create a pdf via Rmarkdown, it's only showing one page of my table (which should be on several pages). I posted a question on stackoverflow:
B) As I can't create the output in the group.long format, I tried to split it into several st() tables without using group.long. But I can't figure out how to put 2 or more tables in one Rmarkdown (PDF) document. I always get this error:
! LaTeX Error: \caption outside float.
Everything is working fine when knitting to a html file...
Thanks!
Thanks for the Issue!
- Answered on StackExchange
- Hmm, odd. RMarkdown seems to be escaping characters incorrectly for hte second table, not sure why. I'll look into this a bit later. You can fix this now by going into the TeX code after the fact and replacing
\textbackslash begin\{table\}{[}!htbp{]}
with\begin{table}[!htbp]
. Or just remove theout = 'latex'
options - this will default to aknitr::kable
version of the table, which naturally RMarkdown knows how to deal with. You will lose a little formatting though.