Search code examples
rrstudiopandocquarto

Quarto extension installed but not found during render


Environment: RStudio 2022.12.0+353, Ubuntu 22.04.2 LTS

I am writing a scientific manuscript using Quarto/RStudio. I just installed the section-bibliographies filter as an extension using quarto install extension pandoc-ext/section-bibliographies which concluded with "Extension installation complete". I now see the _extensions subdirectory in the project directory. I also updated the YAML as described in the section-bibliographies/README:

---
filters: 
  - section-bibliographies
bibliography: refs.bib
reference-section-title: References
citeproc: false
---

However, when I render the .qmd file, it errors with "Error running filter section-bibliographies: Could not find executable section-bibliographies". Before adding the section-bibliographies filter, the document rendered without any errors. In troubleshooting this, I installed the latest version of Quarto, but that did not fix the issue. Any ideas what the problem might be?


Solution

  • Following the suggestion made by @tarleb, I added the full filter path (from the project directory) to the YAML. During rendering, that produced the following error:

    "Error running filter _extensions/pandoc-ext/section-bibliographies/section-bibliographies.lua: cannot open _extensions/pandoc-ext/section-bibliographies/section-bibliographies.lua: No such file or directory".

    I then provided the full filter path (i.e., from my computer's top-level directory) and that allowed rendering without errors. However, I also had to remove citeproc: false from the YAML for the citations to be formatted and for the references to be displayed at the end of each H1 section. The only remaining glitch is that, in addition to references at the end of each H1 section, there is another section at the end of the rendered document containing all references. Finally, for completeness, in the Background Jobs window the rendering step also produces warnings for each figure, for example:

    "[WARNING] Citeproc: citation fig-lineplot not found".

    Despite this, the figures and figure citations are formatted as expected.