I am building a PDF document using r markdown, tinytex and xelatex. I cannot maintain the order of the output chunks. The document has text chunks, table chunks, and plot chunks. I am especially having trouble with table chunks. I have tried to use the "\FloatBarrier" command to control some of the float issues, but I cannot fit a table and plot on a single page (event though there is room on the page) or maintain the output order.
Can someone point me to resources for controlling output order in r markdown documents that produce a PDF document?