使用Quarto渲染QMD文件至HTML/DOCX时遇“无法打开连接”错误
渲染Quarto QMD文件时出现文件无法找到错误
尝试将QMD文件渲染为HTML或DOCX格式时,触发以下错误:
Error in file(file, ifelse(append, "a", "w")) : cannot open the connection Calls: .main -> execute -> write -> cat -> file In addition: Warning message: In file(file, ifelse(append, "a", "w")) : cannot open file 'Graphs.qmd': No such file or directory Execution halted
已执行的排查操作:
- 指定文件完整路径进行渲染
- 创建测试QMD文件尝试渲染
- 更新所有R包
- 重新安装rtools与Quarto CLI
- 执行
quarto check,结果全部显示“OK” - 以管理员身份运行RStudio排除权限问题
- 从命令提示符直接执行渲染命令
当前环境信息:
> sessionInfo() R version 4.2.2 (2022-10-31 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22631)
内容的提问来源于stack exchange,提问作者Osama
相关产品推荐
相关产品推荐

