简体   繁体   中英

Error running filter pandoc-citeproc: Could not find executable pandoc-citeproc

I am attempting to use R Markdown with papaja. I downloaded everything according to this website. I open an APA template, and click "knit". I get this error:

Error running filter pandoc-citeproc: Could not find executable pandoc-citeproc

I know that pandoc is working outside of R (I can run it in the terminal window). It appears it is on my computer, why can't R Markdown see it and use it? How might I change this to 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. Any ideas?

I am running R Studio on a Mac.

I was experiencing the same problem right after upgrading from Ubuntu 18.04 LTS to 20.04 LTS. Running knitr from RStudio to turn an RMarkdown file into HTML format. I found out the pandoc-citeproc program was not installed with the upgrade, so I had to install it.

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 . Here I reproduce verbatim for quick reference:

  1. Update the package index:

    sudo apt-get update

  2. Install pandoc-citeproc deb package:

    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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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