-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
When quarto_render() errors out due to an error in a code chunk, it would be helpful if the condition message were more informative. Tools like targets would have an easier time logging and documenting errors. From ropensci/tarchetypes#99.
lines <- c(
"---",
"title: 'error'",
"format: html",
"editor: source",
"---",
"",
"```{r}",
"stop('true message')",
"```"
)
writeLines(lines, "report.qmd")
tryCatch(
quarto::quarto_render("report.qmd", quiet = TRUE),
error = function(condition) {
print(sprintf("Quarto error message: %s", conditionMessage(condition)))
}
)
#> [1] "Quarto error message: ! System command 'quarto' failed"Created on 2022-07-01 by the reprex package (v2.0.1)
cderv, arnold-c, mps9506, ginolhac, shirdekel and 3 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request