I am using a .Rmd file to generate a beamer PDF presentation (which, therefore, accepts LaTeX code).
.Rmd
LaTeX
In the standard R Markdown
R Markdown