title: R code inside math notation R Markdown
body: <p>In R Markdown, I can get an inline r code chunk to run inside single <code>$</code> math notation (only with a <code>*</code> before), but not double <code>$$</code> math notation:</p>
  
  <pre><code>* $H_o = `r 1 + 1`$
  </code></pre>
  
  <p>works, but:</p>
  
  <pre><code>$H_o = `r 1 + 1`$
  </code></pre>
  
  <p>doesn't work, and neither does:</p>
  
  <pre><code>$$H_o = `r 1 + 1`$$
  </code></pre>
  
  <p>The double <code>$$</code> is more flexible being able to put math notation on multiple lines, but how can you add inline code chunks inside?</p>