Code
cat(pre("x"))
Output
<pre><code>x</code></pre>
Code
cat(pre("x", r_code = TRUE))
Output
<pre class='sourceCode r'><code>x</code></pre>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.