rmarkdown: pandoc: pdflatex not found

后端 未结 7 1291
没有蜡笔的小新
没有蜡笔的小新 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:41

    I had a similar issue as I wasn't able to knit pdf file & solved it by installing & running tinitex packages using those commands in the console -- not the terminal

    enter code here
    

    install.packages("tinytex")

    tinytex::install_tinytex()

提交回复
热议问题