ion level2" number="3.2">
<h2><span class="header-section-number">3.2</span> Compiling the code</h2>
<p>The function <code>Rcpp::sourceCpp()</code> will compile your source code and load the defined function into R.</p>
<div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="030_basic_usage.html#cb5-1"></a><span class="kw">library</span>(Rcpp)</span>
<span id="cb5-2"><a href="030_basic_usage.html#cb5-2"></a><span class="kw">sourceCpp</span>(<span class