By doubling the backticks in Markdown, it is easy to render some text in code style including the backticks, such as: `r 2+2`
.
But how to do that with RMarkdown ? By the same way we can display `t 2+2`
, but replacing t
with r
executes the R code 2+2
.
The only way I have found so far is:
<p><code class="r">`</code><code class="r">r 2+2`</code></p>
Not very convenient. Maybe I should define a new css for doing that more conveniently ?