Naming of code chunk consistency: naming coding chunk in Positron requires label chunk #4697
-
Hello Posit team! Thank you all for your tremendous work in Positron, I can see a lot of love and hard work has been going into creating this new IDE and I want to express my thanks! I have been piloting Positron since the public beta release and have been enjoying it. I have come across a behavior in Positron's chunk naming label that differs a bit from RStudios naming chunking behavior that I wanted to get some insight on to see if this behavior is intended. In the Positron version I am running:
this positron session is running Quarto 1.5.52 if you would like a code chunk to labeled with a name in the outline, you need to directly call the "label" option in the chunk like so: however, in RStudios, the behavior is somewhat different. When you are trying to name a code chunk, if you directly include a chunk name in the curly brackets of the chunk itself, RStudio will override the "label" chunk option in favor of the name provided in the curly brackets, like so: below is the RStudios session that was used to create this:
Additionally, if a "label" option is not provided in the Positron session, a chunk name will not occur: however, this behavior does not occur in RStudios if you do not provide a label option in the chunk directly. RStudios will take the name provided in the curly brackets as a chunk label: I am curious if this behavior is intended in Positron, or if this behavior is intended to be similar to how Rstudios selects chunk labels. Thank you for taking the time to review this, and I apologize if there is already an issue/discussion out there related to this, if there is, i'll be happy to be pointed to it and follow the issue/discussion for any updates. Currently I am aware of #3822, that detail a tracked issue on updating the outline |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@anbrav0 thank you for testing Positron! I'm able to observe what you've described, but I also see this behavior in the Quarto extension in VS Code, without Positron. I believe this is an issue with the Quarto extension, and what quarto-dev/quarto#167 is tracking (even though it has taken on an additional comment about the issue of unnamed code cells being unwanted in the outline too). |
Beta Was this translation helpful? Give feedback.
@anbrav0 thank you for testing Positron! I'm able to observe what you've described, but I also see this behavior in the Quarto extension in VS Code, without Positron. I believe this is an issue with the Quarto extension, and what quarto-dev/quarto#167 is tracking (even though it has taken on an additional comment about the issue of unnamed code cells being unwanted in the outline too).