Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/tests/docs/break-quarto-md/github-issue-1034.qmd
3583 views
---
execute:
  echo: true
---

The original chunk:

```{r}
#| label: foo
1 + 2
```

Using `ref.label` does not work with an empty body:

```{r, ref.label = "foo"}
```

Using `ref.label` does work with a blank line body:

```{r, ref.label = "foo"}

```

Using `<<...>>` noweb notation does work:

```{r}
<<foo>>
```