Open wjchulme opened 3 years ago
Small footnote: the pandoc executable is bundled within your RStudio installation (it's in RStudio/bin/pandoc/) and not your R installation.
I would also recommend this container included the same version of pandoc that RStudio includes, because the main maintainer of the knitr package is an RStudio employee and so they'll be checking against that rather than the very latest version of pandoc.
This Docker image is currently using Ubuntu 18.04. Even if it was using 20.04, 20.04 doesn't have a new enough version of pandoc either, unsurprisingly.
So, I think would need the appropriate version of pandoc (2.11 or later) including from pandoc's releases. Also think RMarkdown will need updating too.
However, the build process for this Docker image does seem a little unconventional right now.
It could be helpful to follow what the Rocker containers do. Their pandoc installation script is here.
It could be helpful to follow what the Rocker containers do. Their pandoc installation script is here.
They're pulling the latest release from pandoc on GitHub, by default :+1:
I'm using Rmarkdown to create html reports. These include citations to journal articles, using a bibliography. When I render the html locally using my own R installation (with pandoc version 2.11.4), everything works. When I try to render through the opensafely CLI (with pandoc version 1.19.2.4), it fails, with the following error message:
When I remove the citations, it works again.
Here's a similar issue https://github.com/crsh/papaja/issues/427#issuecomment-728805035, in particular:
I'm hoping that an update of pandoc will therefore fix the problem, and not break other things 🤞🏻