e="doc-biblioref">a</a>)</span> allows working with leaflet but including the dependencies could clash with the leaflet package itself, therefore it uses the dependencies from the leaflet package instead.</p>
<p>The htmlwidgets package comes with a function to extract the dependencies from a widget, so they can be reused in another. The function <code>htmlwidgets::getDependency</code> returns a list of objects of class <code>html_dependency</code> which can therefore be used in other widgets as demonstrated