Skip to content

Chunk with eval = FALSE is evaluated by "Run Above" #1023

Description

@etiennebacher

Bug description

I have the following foo.Rmd file:

```{r, eval = FALSE}
print("hi")
```
```{r}
1 + 1
```

Using the Quarto extension in Positron, if I press the "Run Above" button in the second chunk, then it evaluates the first code chunk while it shouldn't. Using #| eval: false correctly skips running this chunk but I'm working with a lot of Rmd vignettes and I'd rather not translate all the chunk options to the #| syntax. The chunk with eval = FALSE is correctly ignored in RStudio.

Might be the same root cause as in #942 but the problematic use case is a bit different.

Steps to reproduce

Using the example file above, click the "Run Above" button on top of the second chunk.

Actual behavior

It executes the first chunk.

Expected behavior

The first chunk shouldn't be evaluated.

Your environment

Positron Version: 2026.07.0 build 209
Code - OSS Version: 1.118.0
Commit: c9e80d775fe6c04db293d8f79260c43200746fea
Date: 2026-06-17T22:10:27+02:00
Electron: 39.8.8
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.17.0-1025-oem

Quarto extension: 1.134.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions