我正在尝试使用 RStudio 和 knitr 在 Windows 10 上生成 PDF 文件。我的电脑上没有 LaTex。单击“编译 PDF”按钮时,出现以下错误消息:
LaTex Error: File 'framed.sty' not found.
==>Fatal error occurred, no output PDF file produced.
我在H:\R\win-library\3.3\knitr\misc下找到了一个framed.sty文件。看起来 RStudio 找不到路径。所以,我尝试了一些方法。例如,安装框架包。我从 https://www.ctan.org/pkg/framed?lang=en 下载了框架包.
然而,我找到的所有网站都在谈论Mac或Linux上的解决方案,例如https://github.com/rstudio/rmarkdown/issues/39 .如何在 Windows 10 上解决此问题?
最佳答案
假设您在 Windows 上使用 MiKTeX。您可以使用它的包管理器来安装丢失的包:https://docs.miktex.org/manual/pkgmgt.html
关于r - 当我使用 knitr 和 RStudio 在 Windows 上生成 pdf 文件时无法安装 framed.sty,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40731091/