Skip to content
Discussion options

You must be logged in to vote

This is not a bug.
You are mixing knitr syntaxes which you should not do.

All this is described in knitr: https://yihui.org/knitr/options/

Quarto uses and recommends YAML, thus there should be nothing in between brackets beside the language and no equal signs anywhere.

Recommended YAML syntax:

```{r}
#| label: "my-label"
#| echo: false
#| out-width: 100%
...
```

R inline syntax (not recommended in Quarto):

```{r my-label, echo = FALSE, out-width = "100%"}
...
```

R multiline syntax (not recommended in Quarto):

```{r}
#| label = "my-label",
#| echo = FALSE,
#| out-width = "100%"
...
```

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JosephBARBIERDARNAL
Comment options

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

This discussion was converted from issue #11572 on November 29, 2024 12:24.