简体   繁体   English

Quarto 渲染不渲染

[英]Quarto Render not Rendering

I am trying out Quarto, I am using R version 4.2.1.我正在试用 Quarto,我使用的是 R 版本 4.2.1。 When I go to RStudio, File -> New File -> Quarto Document and create a new document, when I try to render via the RStudio Render button, I get the error 'C:/Program' is not recognized as an internal or external command, operable progam or batch file当我从 go 到 RStudio,文件 -> 新文件 -> Quarto 文档并创建一个新文档时,当我尝试通过 Z0040CD1E256CD59F8101F5F8C7A931C :/Program' 渲染按钮被识别为内部错误时命令、可运行的程序或批处理文件

I have tried installing R in a directory which has no white space in the installation path, but this did not resolve the issue.我尝试在安装路径中没有空格的目录中安装 R ,但这并没有解决问题。

在此处输入图像描述

UPDATE: on doing quarto check as suggested in comment gave me更新:按照评论中的建议进行四开quarto check给了我

在此处输入图像描述

Not sure what that means, but I was able to solve the problem by ensuring my qmd quarto file did not have white space in its name (replaced white space with underscores. The error then went away.不知道这意味着什么,但我能够通过确保我的qmd quarto 文件的名称中没有空格来解决问题(用下划线替换空格。然后错误就消失了。

This error pops up if there is a space anywhere in the filepath unfortunately.如果不幸的是,文件路径中的任何地方都有空格,则会弹出此错误。 I am running into this error when I try to make a new project in a directory that has a filepath with a space (thanks onderive...)当我尝试在具有带空格的文件路径的目录中创建新项目时遇到此错误(感谢 onderive ...)

On changing my qmd file name, from HVL campaign.qmd to HVL_campaign.qmd (removing the white space), the rendering works.将我的qmd文件名从HVL campaign.qmd更改为HVL_campaign.qmd (删除空白)后,渲染工作。 The error message was misleading though, that may need to get looked at...?错误消息虽然具有误导性,但可能需要查看...?

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

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