Search code examples
r-markdownrstudiopandoc

pandoc related error on saving rmarkdown file


I am not being able to knit R markdown to pdf and I suspect it is due to a pandoc issue because every time I try saving the R markdown file I get the message "Error creating notebook: pandoc document converstion failed with error 64."

I am using RStudio "Prairie Trillium" Release (1db809b8, 2022-05-16) for macOS on macOS Monterey Version 12.4 with R version 4.2.0 (2022-04-22).

What could be causing this error message? Thanks for any help.


Solution

  • Hard to tell without seeing the input document. Error 64 is a PandocParseError, and the most likely explanation is a problem in a YAML metadata block.