Rmarkdown在编织到word时无法找到lua筛选器
我正试着在工作中给word编一些R标记代码。更新所有包后,我无法创建任何word文档。我得到的错误是:Rmarkdown在编织到word时无法找到lua筛选器,r,lua,ms-word,markdown,r-markdown,R,Lua,Ms Word,Markdown,R Markdown,我正试着在工作中给word编一些R标记代码。更新所有包后,我无法创建任何word文档。我得到的错误是: "C:~/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS TestDoc.utf8.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output TestDoc.docx --highlight-style tango --refere
"C:~/AppData/Local/Pandoc/pandoc" +RTS -K512m -RTS TestDoc.utf8.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash+smart --output TestDoc.docx --highlight-style tango --reference-doc word-styles.docx --lua-filter "\\~R/win-library/3.5/rmarkdown/rmd/lua/pagebreak.lua"
Error running filter \\?\UNC\~/R/win-library/3.5/rmarkdown/rmd/lua/pagebreak.lua:
\\?\UNC\~/R/win-library/3.5/rmarkdown/rmd/lua/pagebreak.lua: openBinaryFile: does not exist (No such file or directory)
Error: pandoc document conversion failed with error 83
Execution halted
因为我不是工作中的网络管理员,所以无法进入文件查看lua筛选器是否存在。有没有办法绕过这个错误
谢谢 在权利有限的环境中,我也遇到了与您相同的问题。我可以通过以下步骤来解决这个问题:
remove.packages('rmarkdown')
(无管理员权限)卸载R-Studio中的rmarkdownremove.packages('rmarkdown')
install.packages('rmarkdown')
希望这有帮助。非常感谢您的回答。这真的很有帮助。