# Error: pandoc document conversion failed with error 1 , windows 11

Hi,

I am trying to generate HTML report from RStudio, version 4.2.2 using:

diagnose_web_report(output_format = "html")

working on Windows 11, having this error for both html and pdf reports.

"C:/Program Files/RStudio/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS diagnosis_temp.knit.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output pandocc5447e231be.html --lua-filter "C:\Users\shone\AppData\Local\Programs\R\R-4.2.2\library\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\shone\AppData\Local\Programs\R\R-4.2.2\library\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --variable bs3=TRUE --section-divs --template "C:\Users\shone\AppData\Local\Programs\R\R-4.2.2\library\rmarkdown\rmd\h\default.html" --no-highlight --variable highlightjs=1 --variable theme=bootstrap --css "C:/Users/shone/AppData/Local/Programs/R/R-4.2.2/library/dlookr/resources/dlookr-bootstrap.css" --mathjax --variable "mathjax-url=https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" --include-in-header "C:\Users\shone\AppData\Local\Temp\RtmpIFURjc\rmarkdown-strc54c505d1f.html" --variable code_folding=show --variable code_menu=1 --include-in-header header_temp.html --include-after-body "C:\Users\shone\AppData\Local\Programs\R\R-4.2.2\library\dlookr\resources\footer.html"
pandoc.exe: C:\Users\shone\AppData\Local\Programs\R\R-4.2.2\library\fontawesome\fontawesome\css../webfonts/fa-v4compatibility.woff2: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 1

Can anyone help, please ?

Thanks,
Neb

Without more information about your environment, and the content you are trying to render this will be hard to help.

Where does this function comes from ? What is this function doing exactly ?

This means that somehow the intermediate file is not found by Pandoc. This would need to be checked with the function you are using to render

This error message is indicating that the file "fa-v4compatibility.woff2" is not found in the location specified in the CSS file being used by the fontawesome package.

One solution could be to check if the file is present in the specified location and if not, download the missing file and place it in the correct location.

Alternatively, you can try updating the fontawesome package to the latest version, as the package may have been updated and the file path might have changed.

You can also try to run the following command in your R console:

fontawesome::fa_install()

This command will install the font-awesome font files in the default location on your system, and should fix the error caused by missing font files.

Another solution that you can try is to use a different CSS file that does not reference the missing file.

If the problem persist, you can try running the diagnose_web_report function with the option "quiet = TRUE" so that you don't see the error message.

Thanks @joanmils ! I missed the fontawesome issue.

Yes please do update - somehow a wrong pass seems to be created - (per the css../) in the file path.

Could be an issue with rmarkdown and fontawesome too, triggered by something on your environment.