我在.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
有谁知道出了什么问题?