I made a presentation in RStudio with RMarkdown/Knitr - it compiles without problems to a pdf (via LaTeX Beamer).
But I cannot get the LaTeX file. Is there any way to export also the LaTeX file which should be produced in the conversion?
(This was not the original accepted answer, but has since been accepted and then edited to reflect this change.)
As of late 2018, the following works:
---
title: "Untitled"
author: "Author Person"
date: "November 26, 2018"
output:
pdf_document:
keep_tex: yes
---
Note that this answer is the YAML automatically inserted by the RStudio program (circa 2018) when you follow the instructions above to use the GUI to make this setting. So I assume the formatting is in the preferred style.