I have been making beamer_presentation slides from RMarkdown for my classes. They work really well for my purposes, except for the fact that I can't figure out how to generate a table that works. An RMarkdown document with the following content:
! Undefined control sequence.
<argument> \@@magyar@captionfix
Error: LaTeX failed to compile table_test.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See table_test.log for more info.
Execution halted
@yihui, can you comment? I'd guess this is something I don't understand about the RMarkdown -> Pandoc -> PDF process, and probably whatever is going on here with tables is a symptom of a more general problem. Is it the |s?
I don't get an error when I compile your example document. Are you using older installations of Latex or any Latex packages? What you're experiencing might be related to this issue.
I updated R and RStudio while trying to debug this myself, so I think I have up-to-date packages. And I'm pretty sure I ran through all the suggestions on https://yihui.org/tinytex/r/#debugging
My best guess is that I'm actually using a different TeX distribution (I do have whatever comes with TeXShop on my Mac, as well). I just went into my RStudio preferences and "Use tinytex when compiling .tex files" wasn't checked, but I fixed that, restarted RStudio, and am still having the error.