Skip to content

Multiline commands hanging in Quarto and R Markdown chunks #17350

Closed

Description

@ronblum

System details

RStudio Edition : Desktop
RStudio Version : 2026.04.0-daily+471
OS Version      : Windows 11
R Version       : 4.5.3

Steps to reproduce the problem

I R Markdown or Quarto, a chunk like

```{r}
1 +
2
```

or

```{r}
sum(1,
2)
```

Then run the chunk.

Describe the problem in detail

The chunk hangs. The status indicator shows that it only reaches the first line. The line is shown in the console, but then there's a second line beginning with + and no further movement. R Markdown and Quarto documents aren't handling chunks with at least some commands that span multiple lines.

Describe the behavior you expected

These examples should work. This is a regression, as they work in 2026.01.0+39.

  • 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
    and removed
    new
    on Apr 6, 2026
  2. ronblum commented on Apr 6, 2026

    @ronblum
    ContributorAuthor

    Note: They work correctly when the documents are rendered.

  3. added this to the Globemaster Allium milestone on Apr 6, 2026
  4. self-assigned this
    on Apr 6, 2026
  5. kevinushey commented on Apr 7, 2026

    @kevinushey
    Collaborator

    Thanks for spotting that @ronblum! Should be fixed in the next builds; I've also added an automation test so we can catch this in the future.

  6. ronblum commented on Apr 7, 2026

    @ronblum
    ContributorAuthor

    Verified in RStudio Desktop 2026.04.0-daily+476 on Windows 11.
    Added test spec tests/panes/editor/multiline_chunk_execution.test.ts.

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions