Skip to content

Quarto documents eval=FALSE inconsistent with RStudio #4104

Answered by juliasilge
renatovargas asked this question in Q&A
Discussion options

You must be logged in to vote

I may not be quite understanding your problem regarding "Run Above". It is true that in Positron comments like this will not work:

```{r eval=FALSE}
x <- 1 + 1
x
```

Instead, you need to do this kind of hash pipe comment:

```{r}
#| eval: false
x <- 1 + 1
x
```

(Notice that it is false, not FALSE, since this is YAML and not R code.) If you have a lot of files to convert in this way, you may want to consider using knitr::convert_chunk_header().

For me, this works correctly for "Run Above" in Positron and "Run All Chunks Above" in RStudio. Can you clarify what you are seeing?

when running "Run Above" and there are many chunks above, Positron will mess up the order of execution and it thro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@renatovargas
Comment options

@juliasilge
Comment options

Answer selected by renatovargas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants