Consistent chunk options for SQL chunks #14636
hardin47
started this conversation in
Feature Requests
Replies: 3 comments 20 replies
-
|
I think this is an issue in RStudio; Quarto doesn't really control what RStudio does when someone clicks on a button in an RStudio editor. |
Beta Was this translation helpful? Give feedback.
8 replies
-
Beta Was this translation helpful? Give feedback.
12 replies
-
|
@hardin47 I've opened an issue on RStudio side: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
SQL in Positron
I understand that in Positron, there is no way to interactively run SQL chunks (although I would love that feature to be added!). When rendering a Quarto doc, the SQL renders via an established connection using an option indicated with
--|.SQL in RStudio
In RStudio (which uses the knitr engine) it is possible to run SQL interactively AND by rendering. However, I have found that the interactive chunk requires a
#|option tag and the render chunk requires a--|option tag. For teaching purposes, the disconnect of two different types of option tags is a cognitive load that I cannot require of my students. Do you know if there is a way to use the same option tag across both render and interactive in RStudio?I've attached a video (I don't know if it will go through) so that you can more easily see what I'm saying.
Also, the different chunk options for render vs interactive is brand new! Last fall, I was using
#|for both in all of my teaching materials.video1911188719.mp4
Beta Was this translation helpful? Give feedback.
All reactions