rmarkdown: pandoc: pdflatex が見つかりません 質問する

rmarkdown: pandoc: pdflatex が見つかりません 質問する

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 がインストールされています。

pdflatex がどこにあるかを R に伝える方法を教えてくれる人はいませんか?

どうもありがとう!

ベストアンサー1

ここで行き詰まった Ubuntu を使用している人にとって、より良い選択肢は (サイズが 1/5 であるため) 次を使用することです。

sudo apt-get install texlive-latex-base

私が見つけたのはhttps://tex.stackexchange.com/a/128309

おすすめ記事