Skip to content

Quarto documents do not have UI gear for changing chunk options #11745

Closed

Description

@jthomasmock

System details

RStudio Edition : Desktop
RStudio Version : 2022.07.1 Build 554
OS Version      :  Mac OS X 12_5_0 on M1 Pro
R Version       : 4.2

Steps to reproduce the problem

.rmd have a gear icon on each code chunk, letting users modify chunk options:

Screen Shot 2022-08-11 at 10 17 58 AM

Create a .rmd:

---
output: html_document
date: "`r Sys.Date()`"
---

```{r}
plot(mtcars)
```

```{r}
plot(mtcars)
```

Then change name of document from file.rmd to file.qmd:

Create a new .qmd or convert a .rmd -> .qmd, the gear UI element present in .Rmd is missing from each code chunk in .Qmd.

image

Describe the problem in detail

Quarto documents have a "regression" in capability, namely that there is no longer an ability to use the GUI element chunk by chunk to modify chunk options.

Describe the behavior you expected

Presence of a gear UI element on each chunk, next to the run chunk UI element.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. added
    new
    on Aug 11, 2022
  2. kevinushey commented on Aug 11, 2022

    @kevinushey
    Collaborator

    Part of the challenge here is that the "Modify chunk options" dialog hasn't been updated yet to be compatible with the newer YAML chunk option style, so the existing dialog does something that's probably not in line with user expectations -- that is, it just modifies the chunk header.

  3. jthomasmock commented on Aug 11, 2022

    @jthomasmock
    ContributorAuthor

    That makes sense as a "regression" - (not really a regression as it's expected).

    There is additional work needed to write the new syntax. Thanks!

  4. added and removed
    new
    on Aug 12, 2022
  5. ronblum commented on Aug 12, 2022

    @ronblum
    Contributor

    How about, an enhancement request to make .qmd on par with .rmd?

  6. ntluong95 commented on Aug 13, 2022

    @ntluong95

    Quarto also doesn't have option to create new code chunk as in Rmarkdown. When choose the engine either R or Python, when click on the new code chunk, you cannot select the language

  7. github-actions commented on Feb 10, 2023

    @github-actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

  8. added
    stale
    on Feb 10, 2023
  9. steveharoz commented on Feb 10, 2023

    @steveharoz

    Since it's being marked as stale, I'll note that it's still an issue.

  10. removed
    stale
    on Feb 11, 2023
  11. Physikuss commented on Jul 31, 2023

    @Physikuss

    In can confirm. I'm on the recent 2023.06.1 Build 524. The gear appears when I load source-View. I disappears as soon as I make a change to chunk. In visual-View the gear is not shown at all.

  12. sbalci commented on Nov 11, 2023

    @sbalci

    The gear appears when you add the chunk in Rstudio. But when you change once it does not appear any more.

  13. added this to the Product Backlog milestone on Nov 20, 2023
  14. tylerotto commented on Jan 26, 2024

    @tylerotto

    If the "modify chunk options" gear icon disappears in the source tab, I've found luck by switching to the visual tab and back to the source tab to get the icon back temporarily. It's better than nothing currently.

  15. self-assigned this
    on Aug 28, 2024
  16. gtritchie commented on Aug 30, 2024

    @gtritchie
    Member

    Note to self, consider multiline YAML syntax when implementing this: #11199

    Potentially useful PR to reference that dealt with chunk options for visual editor and R notebooks: #7666

  17. kevinushey commented on Oct 24, 2024

    @kevinushey
    Collaborator

    Verified working on macOS with RStudio 2024.11.0 Build 319.

    Screenshot 2024-10-24 at 3 25 17 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions