-
DescriptionWhen chunks are run dynamically and depend on some condition earlier in the code, it might be necessary to evaluate a chunk or not. In testing I noticed that labelled chunks seem to cause problems with a lua filter... ---
title: "Untitled"
format: html
execute:
echo: false
---
```{r}
#| eval: true
#| label: tbl-t1
#| tbl-cap: dgdfgh
mtcars |> head() |> knitr::kable()
```
```{r}
#| eval: false
#| label: tbl-t2
#| tbl-cap: hggfh
mtcars |> head() |> knitr::kable()
```
```{r}
#| eval: true
#| label: tbl-t3
#| tbl-cap: fghfgj
mtcars |> head() |> knitr::kable()
```
|
Beta Was this translation helpful? Give feedback.
Answered by
cscheid
Jun 4, 2024
Replies: 1 comment 2 replies
-
update: this only seems to happen with captions... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specifically, this happens when the cell includes indicators of a crossreferenceable element (
label: tbl-*
andtbl-cap: ...
), buteval: false
causes the cell to not produce output.It's a bug.