I am trying to knit an Rmarkdown together for a homework assignment, but I keep getting the following message:
"C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS PS2.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash --output PS2.docx --lua-filter "C:\Users\cms14\AppData\Local\R\win-library\4.2\rmarkdown\rmarkdown\lua\pagebreak.lua" --highlight-style tango
output file: PS2.knit.md
pandoc.exe: PS2.docx: openBinaryFile: permission denied (Permission denied)
Error: pandoc document conversion failed with error 1
I was able to knit this document earlier before adding Latex equations with the "$$" feature, but once I added them, the knit keeps giving me this error. Does anyone know how to fix this?
Update: In trying to knit to a PDF, I got the following error message.
Sorry, but C:\Users\cms14\AppData\Local\Programs\MiKTeX\miktex\bin\x64\pdflatex.exe did not succeed.
! The log file hopefully contains the information to get MiKTeX going again:
Error: LaTeX failed to compile PS2.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See PS2.log for more info.
Within this file, I see the message "GUI framework cannot be initialized." Does anyone know how to fix this?