I used the RStudio knit button. But given your question, I used knitr:knit("my file'). That generated a new file with the extension .md, and a subdirectory with some of my graphics. But still no .tex file. The .md file appears to be the result of some massaging of the ,Rmd file, generating the graphics before "texing" the .Rmd. Am I correct about that?
Sort of! Here’s a description of the process starting with rmarkdown:render() (the more typical starting point, and what the RStudio knit button is running under the hood):
When you run render , R Markdown feeds the .Rmd file to knitr ⧉, which executes all of the code chunks and creates a new markdown (.md) document which includes the code and its output.
The markdown file generated by knitr is then processed by pandoc ⧉ which is responsible for creating the finished format.
Maybe double check that your YAML indentation is correct in the actual file? It doesn’t look quite right in your pasted example above, but that could be a copy-paste artifact. YAML is very picky about indentation, and indentation problems are the most common source of this sort of issue. Correct indentation for this case (from the RMarkdown book):
Actually away from the computer right now so I can’t test anything out. However, as a temporary fix you could try going old school and use Sweave(‘your fille’). Should just generate a tex file which you’ll have to compile separately.