Works on Mac but not on Windows? (Error: LaTeX failed to compile)

Hello!

The R Studio version is 1.2.5042, the R version is 3.6.2 ("Dark and Stormy Night") on both Mac and Windows, but while the code ran in Mac, it did not in Windows (Error: LaTeX failed to compile). Has anyone else run into this issue? If so, how did you resolve this?

Thank you for your help!

What is the code you are trying to run? Can you try to run the smallest possible subset that leads to that error?

For me this message could mean either that you're trying to install a LaTeX distribution but compilation fails, or that you're trying to compile LaTeX code (e.g. knitting an Rmarkdown document to pdf). The second possibility feels more likely.

So in that case you will want to ensure you have a LaTeX distribution available in your system, potentially installing tinytex, and make sure you can compile simple documents.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.