R Studio Quarto Markdown 错误 - 操作系统错误 2 - “系统找不到指定的文件” - 更新到 R Studio 后

问题描述 投票:0回答:1

我最近更新了 R 和 R Studio,并开始在渲染为 HTML 的 Quarto Markdown 文档上收到错误消息。这种情况发生在全新的“测试”文档以及实际的 HTML 报告中。我已卸载并重新安装 R Studio 和 Quarto,但仍然收到错误。

我也尝试遵循这篇文章中的建议:https://community.rstudio.com/t/render-with-quarto-error/134403/6 但这超出了我的能力范围。

这是我收到的错误:

ERROR: NotFound: The system cannot find the file specified. (os error 2), remove 'test_files\mediabag'

NotFound: The system cannot find the file specified. (os error 2), remove 'test_files\mediabag'
    at Object.removeSync (deno:runtime/js/30_fs.js:157:9)
    at removeIfEmptyDir (file:///C:/PROGRA~1/Quarto/bin/quarto.js:5701:18)
    at renderCleanup (file:///C:/PROGRA~1/Quarto/bin/quarto.js:80576:5)
    at file:///C:/PROGRA~1/Quarto/bin/quarto.js:81110:46
    at withTiming (file:///C:/PROGRA~1/Quarto/bin/quarto.js:19624:25)
    at Object.complete (file:///C:/PROGRA~1/Quarto/bin/quarto.js:81110:13)
    at async Object.onPostProcess (file:///C:/PROGRA~1/Quarto/bin/quarto.js:86677:36)
    at async renderFiles (file:///C:/PROGRA~1/Quarto/bin/quarto.js:86648:13)
    at async render (file:///C:/PROGRA~1/Quarto/bin/quarto.js:90679:21)
    at async renderForPreview (file:///C:/PROGRA~1/Quarto/bin/quarto.js:102413:26)

我的 html 文档仍然在最后呈现,但它并不像我在标题中所要求的那样独立。

这是我的 R 会话信息:
R版本4.2.3(2023-03-15 ucrt) 平台:x86_64-w64-mingw32/x64(64位) 运行环境:Windows 10 x64(内部版本 19044)

RStudio版本:
2023.06.0 构建 421

我迷路了 - 预先感谢您的帮助!

r rstudio quarto
1个回答
0
投票

我通过在我的系统上安装 Quarto 找到了解决方案。错误似乎是主要文件位于我的其他 Windows 系统上,并且我通过驱动器使用它。

© www.soinside.com 2019 - 2024. All rights reserved.