Execution option eval: false vs "Run above" #2643
Replies: 3 comments 9 replies
-
Are you using RStudio IDE ? I assuming so below
---
title: Test
format: html
---
```{r}
#| eval: false
1 + 1
```
```{r}
2 + 2
```
```{r}
3 + 3
```
This works for me - Clicking Run all the above from third chunk will not run the first. You may need to update RStudio IDE - I am using last daily version and this may have been fixed recently. Which version are you using ? |
Beta Was this translation helpful? Give feedback.
-
FWIW it has been reported in quarto-dev/quarto-vscode#89 and now |
Beta Was this translation helpful? Give feedback.
-
In VSCode, if I click "Run Above" and some of the above cells have However, if I instead put this inside the cell |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am struggling with the following, rather basic thing:
Setting the chunk option to eval: "false" makes quarto not evaluate the chunk when rendering the document. Only the code inside the chunk is displayed.
When working 'interactively' (?), i.e. not rendering, on a quarto document, I frequently use the command "Run Above" or "Run Cells Above". In these cases, it seems like the chunk option "eval: false" is not respected, i.e. the code in the chunk in question is nevertheless evaluated. This is particularly annoying when the code in the chunk is very time intensive. As a work-around, I always have to comment out these chunks.
In short, my question, is there a way to get chunks not evaluated when not rendering the quarto document, but simply working on it?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions