当我在我的 Mac 上使用 render{rmarkdown} 从 .Rmd 文件生成 pdf 文件时,出现错误信息:
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呢?
非常感谢!