The following r code gives the output
example(
topic = mean
, package = "base"
, type = "html"
)
Wondering how to add similar kind colored output in quarto document.
My attempt and its output is below:
---
title: "Help"
format: html
---
```{r}
#| echo: false
example(
topic = mean
, package = "base"
, type = "html"
)
```
To get syntax highlighting, you may use class-output: r
,
---
title: "Help"
format: html
---
```{r}
#| echo: false
#| class-output: r
example(
topic = mean
, package = "base"
, type = "html"
)
```