How do I knit a pdf containing gt tables?
问题 I'm writing up a report in R Markdown and I made some tables using the gt package. However, when I attempt to knit to a pdf or html file, I get this error: ! LaTeX Error: There's no line here to end. Error: LaTeX failed to compile final_report.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See final_report.log for more info. Interestingly, I'm able to knit to a Word document. I did do some experimenting to make sure it was the tables that were causing it, just to be sure.