Making this draft PR to test a scenario and discuss. This is WIP
Regarding second commit, if we don't error but just don't fallback we would get this behavior with an obscure error due to in chunk content not being parsed as option
---
title: "Example"
format: html
engine: knitr
---
```{r}
# install.packages(c("DBI", "RSQLite"))
db = DBI::dbConnect(RSQLite::SQLite(), ":memory:")
#| label: test multiqueries -5
#| connection: db
select 1
processing file: test2.qmd
|.......................................... | 80% (unnamed-chunk-2)Quitting from lines 14-18 (test2.qmd)
Error:
! The 'connection' option (DBI connection) is required for sql chunks.
Backtrace:
This is related to discussion in https://github.com/quarto-dev/quarto-cli/issues/4306
Making this draft PR to test a scenario and discuss. This is WIP
Regarding second commit, if we don't error but just don't fallback we would get this behavior with an obscure error due to in chunk content not being parsed as option
processing file: test2.qmd |.......................................... | 80% (unnamed-chunk-2)Quitting from lines 14-18 (test2.qmd) Error: ! The 'connection' option (DBI connection) is required for sql chunks. Backtrace: