运行knitr时出错:sh:kpsewhich:找不到命令

时间:2015-12-22 15:25:19

标签: r compiler-errors latex knitr sweave

我在.Rnw名为minimal.Rnw的文件中包含以下代码:

\documentclass[a4paper,11pt]{article}

\begin{document}
\date{\today}

\section{Header}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

\end{document}

当我在文件上运行knit("minimal.Rnw")时,我收到此警告消息并显示错误:

Warning message:
In test_latex_pkg("framed", system.file("misc", "framed.sty", package = "knitr")) :
  unable to find LaTeX package 'framed'; will use a copy from knitr
sh: kpsewhich: command not found

有谁知道出了什么问题?

0 个答案:

没有答案