rmarkdown: pandoc: pdflatex not found

后端 未结 7 1305
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 06:58

When I use the render{rmarkdown} to produce pdf file from .Rmd file on my Mac, an error message says

pandoc: pdflatex not found. pdflatex is needed for pdf output.

7条回答
  •  星月不相逢
    2021-01-31 07:38

    For people that get stranded here because the same error is showing up in their Linux distribution. Get pdflatex in e.g. Ubuntu by installing

    sudo apt-get install texlive-latex-extra
    

    its too much software, but needed for example by knitr (rmarkdown-pdf-compilation)

提交回复
热议问题