-
DescriptionI'm trying to use quarto render test.qmd --log test.log --log-level warning --quiet This will result in an empty log file, despite the QMD document having a clear error that terminates it However, if forcing the output as a json stream, the resulting json says all the printed text of the error are quarto render test.qmd --log test.log --log-format json-stream --quiet (this is taken from another file being rendered, so the output isn't 1:1 with the example below, but the point remains the same)
If I'm reading this correctly, is it possible that all the messages are incorrectly flagged as example file--
title: "TEST"
format:
html:
toc: true
---
```{r do_thing}
1+1
variable <- asdfga
``` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Note that your example is not a valid or working example. I think you are mistaken about the log from the engine/code and the log from Quarto. Note that in Quarto labels are to be written using YAML syntax, i.e., there is nothing but the language inside the brackets. ```{r}
#| label: do_thing
1+1
variable <- asdfga
``` In your document, there are no Quarto warnings or errors. ---
title: "Reproducible Quarto Document"
format: html
---
```{r}
#| label: do_thing
#| error: true
1+1
variable <- asdfga
``` The default in What you see in Quarto log is an output from knitr, not an error:
Maybe Quarto could catch "Execution halted" to raise a Quarto error. This would also need to happen for the other engines. |
Beta Was this translation helpful? Give feedback.
I've opened an issue to improve the situation for
engine: knitr
: