Search code examples
rknitrr-markdownpdflatexxelatex

titling.sty error in rmarkdown


I am getting a very annoying error when I try to run rmarkdown docs knitting to pdf from mac

output file: Untitled2.knit.md

! LaTeX Error: File `titling.sty' not found.

Does anyone know a simple solution? I think what caused it was trying to re-install MacTex.


Solution

  • There is a discussion about this problem here.

    It probably means your TeX installation is incomplete. I had the same problem on Ubuntu because I installed texlive instead of texlive-full.