Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistency needed CLI/WEB: "code cell" or "code chunk"? #6220

Open
Tracked by #9098
mcanouil opened this issue Jul 15, 2023 Discussed in #6151 · 2 comments
Open
Tracked by #9098

Consistency needed CLI/WEB: "code cell" or "code chunk"? #6220

mcanouil opened this issue Jul 15, 2023 Discussed in #6151 · 2 comments
Labels
documentation Doc improvements & quarto-web
Milestone

Comments

@mcanouil
Copy link
Collaborator

mcanouil commented Jul 15, 2023

Discussed in #6151

Originally posted by mine-cetinkaya-rundel July 9, 2023
Quarto documentation refers to both "code chunks" and "code cells". Quarto internals generally refer to code cells. It would be good if we could settle on a term and use it, but this might be impossible. I still wanted to record this discussion here, in case others have thoughts and want to chime in.

Some points to keep in mind:


Originally posted by mcanouil July 15, 2023
Few statistics:

@mcanouil mcanouil added the documentation Doc improvements & quarto-web label Jul 15, 2023
@mcanouil mcanouil changed the title Consistency needed CLI/WEB: "code cell" or "code chunk" Consistency needed CLI/WEB: "code cell" or "code chunk"? Jul 15, 2023
@mine-cetinkaya-rundel
Copy link

Something to keep in mind is that RStudio IDE menus should be aligned too.

  • In the visual editor:

The Insert anything menu calls them "chunk"s:

Screenshot 2023-07-15 at 11 11 38 AM

But in the Insert menu they're called "Executable cell":

Screenshot 2023-07-15 at 11 12 38 AM
  • In both the source and visual editors:

The green button calls then a "chunk":

Screenshot 2023-07-15 at 11 15 01 AM

I believe R Markdown will continue to call these chunks, therefore if the RStudio menu were to be aligned with Quarto terminology, it would need to be context-aware of qmd vs. Rmd, which I think is doable. If/when we settle on terminology, we can open a corresponding issue at https://github.com/rstudio/rstudio as well.

@mcanouil
Copy link
Collaborator Author

mcanouil commented Jul 15, 2023

Nice catch @mine-cetinkaya-rundel
In Visual Studio Code, it is already inconsistent compared to RStudio, but consistent with the "cell" convention.

/ command Insert Format
image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Doc improvements & quarto-web
Projects
None yet
Development

No branches or pull requests

3 participants