當我使用的渲染{} rmarkdown產生在我的Mac從.Rmd文件pdf文件,錯誤消息說rmarkdown:pandoc:pdflatex沒有找到
pandoc: pdflatex not found. pdflatex is needed for pdf output. Error: pandoc document conversion failed
然而,當我檢查與
pdflatex -v
我
pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012)
kpathsea version 6.1.0
Copyright 2012 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.10; using libpng 1.5.10
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with xpdf version 3.03
的pdflatex安裝在我的機器。
任何人都可以幫助告訴我如何告訴R在哪裏可以找到pdflatex?
非常感謝!
您是否在安裝pdflatex後重新啓動R? – daroczig
是的,我做到了。仍然沒有工作。 – askming