0

Markdown to html, it showed error message "pandoc.exe: r-markdown-temp2.docx: openBinaryFile: permission denied (Permission denied) Error: pandoc document conversion failed with error 1 Execution halted" When I tried to install "htmltools" it also shows "Error in install.packages : Updating loaded packages".

How to solve the problem?

2
  • I think this post might lead you to the answer. Let me know if it's useful. Commented May 26, 2021 at 3:42
  • So that my experience can help anyone: I've experienced this, and it was caused by my antivirus silently "protecting" the resulting .docx file from pandoc.exe. I couldn't figure it out sooner because the antivirus couldn't report before pandoc gives up trying to access the file. Commented Jun 29, 2021 at 7:55

1 Answer 1

1
  • Check to make sure pandoc is installed, else install with installr::install.pandoc()
  • Delete or rename previously generated document(s). If you can find that / those document(s), you'll see (that it says) "Read Only", the default MS WORD document load status. Unless that status is removed (by deleting the document, for example, or by clicking on that status bar to change it), you can't have permission to overwrite it.
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.