compilation failure caused bybibliography in rstudio

Hello,

I have the same problem as this post, compilation failure caused by bibliography in Rstudio.

I am using RMarkdown to generate a pdf report with a bibliography. I have a template that I wrote two years ago and everything has been fine until my organisation enforced an update in operating system from Windows 10 to 11. Then updated to RStudio 2024.04.2 Build 764 with R 4.4.1 (this is packaged by my organisation).
The error is:
Lonely \item--perhaps a missing list environment,
which as per the post above I can trace to the bibliography.

I haven't provided a MWE because the above post is exactly what I'm experiencing.

Was there a reply/solution to this post?
Thanks.

Hi All,
I solved this problem and thought that I would provide my solution in case others came across it:

  1. Install latest version of RStudio 2024.12.0+467 which uses R4.4.2
  2. Install latest version of RTools4.4
  3. Update all packages, In the RStudio menu Tools > Check for package updates...
  4. Insert the relevant code from Missing list environment error with version 3.0.3 (pandoc + citeproc issue) · Issue #4879 · Zettlr/Zettlr · GitHub into my template (and make sure you remove/comment out anything that might conflict/duplicate this code)
  5. Perform a MikTex update - this step may not be necessary if you use TinyTex

Result: A compiled report with a bibliography in the template I wrote.
Thanks