Hi! I am trying to following the quarto presentation tutorial for highlighting lines of code: Quarto - Revealjs
I can get the python syntax to render with code highlighting, but I am unable to do the same for R syntax. Is this possible to execute with R as well?
Below is a screenshot example .qmd
, which yields the error shown.
The raw .qmd
is below, but I couldn't get it to format correctly. Please let me know if you also have tips for formatting chunks/ minimal .qmd's in this forum for readability.
Thank you!
---
title: "Untitled"
format: revealjs
---
## Code 1
```{r, , echo=TRUE, eval=FALSE}
1 + 1
```
## Code 2
```{r, echo=TRUE, eval=FALSE, code-line-numbers = "1"}
1
1:2
```