R Markdown failed to compile tex file



Hi all! I just started using R Markdown. I created a .Rmd document and tried to knit it to pdf in R Studio. It failed with this error message:

Error: Failed to compile xxxxxx.tex. See xxxxxxx.log for more info.
Execution halted

I'm using R Studio through Anaconda and I have MacTex installed. I also checked pdflatex.


Any help/guidance will be much appreciated!


If you share the content of xxxxxxx.log maybe we can help you, otherwise we have not enough information.