简体   繁体   English

运行过滤器 pandoc-citeproc 时出错:找不到可执行的 pandoc-citeproc

[英]Error running filter pandoc-citeproc: Could not find executable pandoc-citeproc

I am attempting to use R Markdown with papaja.我正在尝试将 R Markdown 与 papaja 一起使用。 I downloaded everything according to this website.我根据这个网站下载了所有东西。 I open an APA template, and click "knit".我打开一个 APA 模板,然后单击“编织”。 I get this error:我收到此错误:

Error running filter pandoc-citeproc: Could not find executable pandoc-citeproc运行过滤器 pandoc-citeproc 时出错:找不到可执行的 pandoc-citeproc

I know that pandoc is working outside of R (I can run it in the terminal window).我知道 pandoc 在 R 之外工作(我可以在终端窗口中运行它)。 It appears it is on my computer, why can't R Markdown see it and use it?看起来它在我的电脑上,为什么 R Markdown 看不到它并使用它? How might I change this to pandoc-citeproc?我该如何将其更改为 pandoc-citeproc? I have tried running我试过跑步

install pandoc-citeproc 

in my terminal window.在我的终端窗口中。

It then shows me this:然后它向我展示了这个:

install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 file2
   install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
           [-o owner] file1 ... fileN directory
   install -d [-v] [-g group] [-m mode] [-o owner] directory ...

I then go back to R, restart my session, and get the same error.然后我回到 R,重新启动我的会话,并得到同样的错误。 Any ideas?有任何想法吗?

I am running R Studio on a Mac.我在 Mac 上运行 R Studio。

I was experiencing the same problem right after upgrading from Ubuntu 18.04 LTS to 20.04 LTS.从 Ubuntu 18.04 LTS 升级到 20.04 LTS 后,我遇到了同样的问题。 Running knitr from RStudio to turn an RMarkdown file into HTML format.从 RStudio 运行 knitr 将 RMarkdown 文件转换为 HTML 格式。 I found out the pandoc-citeproc program was not installed with the upgrade, so I had to install it.我发现升级时没有安装 pandoc-citeproc 程序,所以我必须安装它。

I got the instructions from the package page: https://ubuntu.pkgs.org/20.10/ubuntu-universe-arm64/pandoc-citeproc_0.17.0.1-1build1_arm64.deb.html .我从包页面得到了说明: https : //ubuntu.pkgs.org/20.10/ubuntu-universe-arm64/pandoc-citeproc_0.17.0.1-1build1_arm64.deb.html Here I reproduce verbatim for quick reference:在这里,我逐字复制以供快速参考:

  1. Update the package index:更新包索引:

    sudo apt-get update sudo apt-get 更新

  2. Install pandoc-citeproc deb package:安装 pandoc-citeproc deb 包:

    sudo apt-get install pandoc-citeproc sudo apt-get install pandoc-citeproc

Hope it works for anyone out there if you suddenly find your installation does not have all the pandoc -related packages that your workflow needs.如果您突然发现您的安装没有您的工作流程所需的所有与pandoc相关的软件包,希望它适用于那里的任何人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM