Skip to content

Reuse chunks #1161

Answered by cderv
FCACollin asked this question in Q&A
Jun 16, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Everything that works with knitr should work with Quarto.

So this works

---
title: test
format: html
---

Here is a code chunk that is not evaluated:

```{r, chunk-one, eval=FALSE}
1 + 1
2 + 2
```

Now we actually evaluate it:

```{r, chunk-one, eval=TRUE}
```

And I can evaluate it later again in the same document:

```{r, chunk-one, eval=TRUE}
```

At least on my side with latest version.

Is this correctly working for you ?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@FCACollin
Comment options

@cderv
Comment options

@FCACollin
Comment options

Answer selected by FCACollin
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