"st">&quot;htmlwidgets/stats/stats.min.js&quot;</span>)</span></code></pre></div>
<p>First we use the <code>system.file</code> function to retrieve <em>the path to the directory</em> which contains the dependency (<code>stats.min.js</code>). It’s important that it is the path to the directory and not the file itself.</p>
<div class="sourceCode" id="cb181"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb181-1"><a href="advanced-topics.html#cb181-1"></a><span class="co"># stats.R</span></sp