I am trying to Knit PDf file from RStudio, and I am getting the following error:
! LaTeX Error: File `framed.sty' not found.
If you are using RStudio, then the “Knit” button (Ctrl+Shift+K) will render the document and display a preview of it.
Having saved your R Markdown file, it's time to process it and generate a PDF file. You can do this by clicking the Knit PDF button above the text. Your PDF file will be generated and opened as shown below.
Looks like you have a character in your document that is not compatible with the inputenc LaTeX package. You may need to change the encoding if you are using non-English characters in your document.
I know this is kind of old, but I tried all this answers in my ubuntu and it didn't work, finally I found that yihui developed the tinytex package, the only thing you have to do is run the following code:
install.packages(c('tinytex', 'rmarkdown')) tinytex::install_tinytex()
and you are set, this works cross platform
Cheers
While trying to knit PDF file from R Studio.
Error-1: ! LaTeX Error: File `framed.sty' not found.
Reference: https://github.com/rstudio/rmarkdown/issues/39
Solution:
You need to install the framed LaTeX package.
yum -y install texlive-framed
Error-2: ! LaTeX Error: File `titling.sty' not found.
Reference: https://github.com/rstudio/rmarkdown/issues/359
Solution:
wget http://mirrors.ctan.org/macros/latex/contrib/titling.zip unzip titling.zip # (might need to sudo yum install unzip) cd titling latex titling.ins sudo mkdir -p /usr/share/texlive/texmf-dist/tex/latex/titling sudo cp titling.sty /usr/share/texlive/texmf-dist/tex/latex/titling/ sudo texhash
I had a similar problem with titling.sty. The solution was to install a package that contained the missing file.
On my ubuntu it was:
sudo apt install texlive-latex-extra
Remember, that you can always find a package that contains a given file by using apt-file:
sudo apt-file search titling.sty
Of course, you'll have to install the apt-file package first (and refresh the file database) if you haven't done it before:
sudo apt install apt-file
sudo apt-file update
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With