当我使用render {rmarkdown}从我的Mac上的.Rmd文件生成pdf文件时,会显示一条错误消息
pandoc: pdflatex not found. pdflatex is needed for pdf output.
Error: pandoc document conversion failed
但是当我检查时
pdflatex -v
Run Code Online (Sandbox Code Playgroud)
我有
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 …Run Code Online (Sandbox Code Playgroud)