【问题标题】:Unable to knit pdf from Rmardown from Rstudio in Windows 10 PC无法从 Windows 10 PC 中的 Rstudio 的 Rmardown 编织 pdf
【发布时间】:2017-10-27 14:54:47
【问题描述】:

我在最新的 R 和 Rstudio 版本中创建了一个新的 Rmd 文件,并安装了完整版本的 MiKTeX。在我的 Windows 10 机器上。

当我尝试编织它时,出现以下错误

! LaTeX Error: File `fancyvrb.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.34 \newcommand

pandoc.exe: Error producing PDF
Error: pandoc document conversion failed with error 43
Además: Warning message:
comando ejecutado '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS pdfprueba.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output pdfprueba.pdf --template "C:\Users\karin\Documents\R\win-library\3.3\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' tiene estatus 43 

Ejecución interrumpida

我怀疑可能是我在 MiKTeX 中没有 fancyvrb 包,所以我按照these 的说明进行操作,但仍然遇到同样的错误。

【问题讨论】:

    标签: latex rstudio knitr


    【解决方案1】:

    用同样的方法试试

    Miktex package manager (admin)
    

    在 > 存储库下检查您的软件包存储库是否是最新的。 在名称框中输入您的包裹的名称 然后过滤 然后添加你的包

    测试你的包是否安装在 dos CMD 类型 kpsewhich fancyvrb.sty。你应该能够看到你的包的路径。

    Microsoft Windows [version 10.0.15063]
    (c) 2017 Microsoft Corporation. Tous droits réservés.
    C:\>kpsewhich fancyvrb.sty
    C:/Users/me/AppData/Roaming/MiKTeX/2.9/tex/latex/fancyvrb/fancyvrb.sty
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-15
      • 2017-02-17
      • 2016-03-08
      • 1970-01-01
      相关资源
      最近更新 更多