R Markdown failed to compile tex file

rmarkdown

#1

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.

Sys.which('pdflatex')
pdflatex
"/Library/TeX/texbin/pdflatex"

Any help/guidance will be much appreciated!


#2

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