R md with beamer compilation error with latest TeX update


! Undefined control sequence. @@magyar@captionfix

I am getting the error above while compiling a beamer presentation using R markdown. This happened after upgrading to latest tex base. Apparently this is a known error with newest Tex update. More about this issue https://tex.stackexchange.com/questions/426088/texlive-pretest-2018-beamer-and-subfig-collide

This issue can be resolved by adding a \relax option to the .tex document. However, I am preparing a beamer presentation with R markdown. So, this two step process of adding the command to the Tex document after pandoc converts the md to tex will be super annoying.

Any known fix?


I'm having the same issue, any luck?