Error in compiling rmarkdown to PDF file` xxx.sty ‘ not found.

as: https://github.com/rstudio/rmarkdown/issues/39

error message

LaTeX Error: File 'framed.sty' not found.
LaTeX Error: File 'titling.sty' not found.

solution

method 1

USES Tex’s TLMGR package to manage the installation of the missing.sty file

tlmgr install framed

method 2

on my system, TLMGR install: package already present: framed but still reported an error, the following method successfully installed

yum install missing file

yum -y install texlive-framed
yum -y install texlive-titling

Read More: