title: Is there a way to do Jupyter cell magic with R
body: <p>I have installed Jupyter and R on my Windows 8 laptop (64bit).</p>
  
  <p>How do I run magic commands in a Jupyter notebook running with the R kernel.</p>
  
  <p>Example:
  I would like to run e.g.</p>
  
  <pre><code>%%latex
  \sqrt{2}
  </code></pre>
  
  <p>but instead of formatted math this returns:</p>
  
  <pre><code>Error in parse(text = x, srcfile = src): &lt;text&gt;:1:1: unexpected SPECIAL
  1: %%
      ^
  </code></pre>
  
  <p>The documentation for these functions is somewhat sparse and a lot of it has not been updated from the IPython documentation. Perhaps this functionality is not intended with r kernels.</p>