Error: Failed to compile Informe3EP-knitr.tex.
In addition: Warning message:
running command '"pdflatex" -halt-on-error -interaction=batchmode "Informe3EP-knitr.tex"' had status 1
Any ideas how to fix the problem?
Thanks a lot for any suggests.
Ana
A recent version of rmarkdown changed how it calls LaTeX and pandoc (I believe it was something where the call to LaTeX used to be indirect through pandoc, but now is done more directly). This also caused this type of problem for me, at least when using rmarkdown::render (as opposed to the 'knit' button)
See the extended discussion of the issue here:
Two things that helped me:
Make sure your all your paths do not have spaces. In particular, my LaTeX engine (MiKTeX) used to be located in a path with a space, but when I switched it to a path without, it was fixed.
Update Rstudio to a recent version.
I am a little unclear if it has been resolved in knitr/markdown packages, but this Rstudio issue was also affecting pdf creation on windows for me:
Hello Ana, can you tell what you did (following jalsalam pointers) that solved it? Was it removing the space from the path where the tex program is stored? Was it simply updating Rstudio?
What i did was rename my MikTex folder in programs and after that in RStudio I installed the package tinytex again(devtools::install_github('yihui/tinytex')
After these two steps it worked again
You can see more information here: https://github.com/rstudio/rmarkdown/issues/1285
I hope this help you
Thanks for the further detailsn since they were of good help. Installing the package tinytex and restarting R did the trick for me this time. I also removed the spaces from the path where miktex engine was stored.