In R, using an ordinary rmarkdown code chunk (ordinary here means opposite of inline code), how to render some latex code?
Here's an illustrative example:
---
title: "beta test"
output:
html_document
---
```{r}
a = 42
b = "$\\beta$"
c = "$a + 2$"
d = "a + 2"
a
b
c
d
```
`r a`
`r b`
`r c`
`r d`
that generates:
I would like to render the latex code, e.g., the $\\beta$ as it is in the case of the inline code.
My ultimate goal is to generate rendered latex code programmatically from "triple backticks" code chunks.

