【问题标题】:Error when calling blogdown::build_site on Unix, command fails在 Unix 上调用 blogdown::build_site 时出错,命令失败
【发布时间】:2019-03-16 15:19:39
【问题描述】:

我正在使用:

  • R 3.5.2
  • 博客(来自 CRAN 的最新消息)
  • Windows 主机上的 Unix CentOS (Docker)

问题

我正在尝试在 Blogdown 中建立一个站点。我正在尝试构建的站点是Hugo XMin,因为它没有任何修改。我有:

  1. 在我的 Unix 系统中克隆了 Hugo XMin 站点的存储库。
  2. 在 Unix 上安装了所有依赖项。
  3. 在 Bash 中以交互模式输入 R 后,只需使用命令 R 在站点根文件夹中运行命令 blogdown::build_site()

我得到的错误如下:

> blogdown::build_site()
Rendering content/_index.Rmarkdown
running: bash  -c "cd ../..;
find . -not -path '*/exampleSite/*' \\( -name '*.html' -o -name '*.css' \\) | xargs wc -l"
pandoc: Error running filter pandoc-citeproc
pandoc-citeproc not found in path
Error: pandoc document conversion failed with error 83
Execution halted
Warning message:
In file.remove(intermediate_html) :
  cannot remove file '_index.tmp.html', reason 'No such file or directory'
Error in render_page(f) : Failed to render 'content/_index.Rmarkdown'

在我的 Windows 机器上,这工作正常。

【问题讨论】:

    标签: rstudio r-markdown blogdown


    【解决方案1】:

    我被消息欺骗了,没有看到pandoc-citeproc 是必需的,但没有找到。所以修复很简单:

    yum install pandoc-citeproc
    

    【讨论】:

      猜你喜欢
      • 2012-07-03
      • 2014-08-06
      • 2020-11-14
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多