You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.21 01:10:57