Error: pandoc document conversion failed with error 1

Unknown reason, RStudio crashed. After re-install R/RStudio and knitting markdown code which are bug free in previous R/RStudio environment and got error. Need help!

These are messages:

output file:

"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output irf_master.tex --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --lua-filter "C:/Users/lin/OneDrive - The /Documents 1/R/win-library/4.0/rmarkdown/rmd/lua/pagebreak.lua" --lua-filter "C:/Users/lin/OneDrive - The /Documents 1/R/win-library/4.0/rmarkdown/rmd/lua/latex-div.lua" --include-in-header "C:\Users\lin\AppData\Local\Temp\Rtmp0eLx7Y\rmarkdown-str1f816d01bca.html" --variable "geometry:margin=1in" --include-in-header "C:\Users\lin\AppData\Local\Temp\Rtmp0eLx7Y\rmarkdown-str1f89387e0.html"

pandoc.exe: openBinaryFile: does not exist (No such file or directory)

Error: pandoc document conversion failed with error 1

In addition: There were 13 warnings (use warnings() to see them)

Execution halted

It seems you are using onedrive. right ?

What is your rstudio version and rmarkdown version ?

The error means that pandoc can't fint the file to convert. Rmarkdown should have written that file in the document directory for pandoc to find it.

We need more information to try reproduce - I think this is something related to your specific environment and not generic on the tools.

Thanks !

It seems like the pandoc 2.7.3 incompatible with R 4.0.2/RStudio 1.3.1073. After upgraded pandoc to 2.10.1 the problem is solved. Thank you very much.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.