Not able to compile when specifying CSL in R Markdown

883 views Asked by At

I'm writing an article in R markdown using a citation library generated in Mendeley. My document compiles fine with references when I'm not specifying citation style.

bibliography: library.bib

When I specify the CSL:

bibliography: library.bib
csl: stroke.csl

I get the following error: pandoc-citeproc.exe: PandocResourceNotFound "stroke.csl" Error running filter C:/PROGRA~1/Pandoc/pandoc-citeproc.exe: Filter returned error status 1 Error: pandoc document conversion failed with error 83 Execution halted

I have tried different citationstyles from: https://github.com/citation-style-language/styles

I appreciate any help.

1

There are 1 answers

0
knytt On BEST ANSWER

This error is caused by pandoc-citeproc that cannot find the .CSL file. Check whether the .CSL file stroke.csl is in the same directory as the .RMD file you knit.