简体   繁体   English

R-Markdown编成html时出现错误怎么解决?

[英]How to address the error when knitting R-Markdown to html?

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". Markdown 到 html,它显示错误消息“pandoc.exe:r-markdown-temp2.docx:openBinaryFile:权限被拒绝(权限被拒绝)错误:pandoc 文档转换失败,错误 1 执行停止”当我尝试安装“htmltools”时还显示“install.packages 中的错误:更新加载的包”。

How to solve the problem?如何解决问题?

I think it might be a problem Mapping the network drive where the R project is stored.我认为映射存储 R 项目的网络驱动器可能是一个问题。 Check this post and this link检查这篇文章这个链接

  • Check to make sure pandoc is installed, else install with installr::install.pandoc()检查以确保 pandoc 已安装,否则使用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.如果你能找到那个/那些文档,你会看到(它说)“只读”,默认的 MS WORD 文档加载状态。 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.除非该状态被删除(例如,通过删除文档,或通过单击该状态栏来更改它),否则您无权覆盖它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM