Cannot knit papaja file - Deprecated pandoc-citeproc filter

Viewed 374

I cannot knit any papaja files. Whenever I try I get this error:

[WARNING] Deprecated: pandoc-citeproc filter. Use --citeproc instead. pandoc-citeproc: Error in $: Incompatible API versions: encoded with [1,22] but attempted to decode with [1,21]. CallStack (from HasCallStack): error, called at ./Text/Pandoc/JSON.hs:112:48 in pandoc-types-1.21-LpPdBV1sPudK4kVghsVxWs:Text.Pandoc.JSON Error running filter pandoc-citeproc: Filter returned error status 1 Error: pandoc document conversion failed with error 83 Execution halted

I am using: R version 4.0.3 R Studio version 1.4.1013 RMarkdown version 2.5.3 papaja version 0.1.0.9997

I'm new to R so sorry if this is a silly question.

2 Answers

With version 2.11, pandoc has deprecated the pandoc-citeproc filter, which caused some trouble with version 0.1.2 of the rmdfiltr package that papaja relies on.

The issue should be resolved by installing version >= 0.1.3 of the rmdfiltr package which is now readily available from CRAN via

install.packages("rmdfiltr")

I ran into this issue as well -- same R, RStudio, rmarkdown, and papaja version. To add, I'm using pandoc version 2.11.0.2.

It looks like there's been some progress since this post and subsequent comments. I was able to get my document to knit by installing the rmdfiltr package per this comment: https://github.com/crsh/papaja/issues/427#issuecomment-731730225

remotes::install_github("crsh/rmdfiltr")

Related