pan><span class="co">## [1] TRUE</span></span></code></pre>
<p>Using <code><a href="https://r-spatial.github.io/s2/reference/s2_closest_feature.html" class="external-link">s2::s2_closest_edges()</a></code> respects
<code>d1 &gt; 0</code> without requiring a second pass in R, so is
faster than <code><a href="https://r-spatial.github.io/s2/reference/s2_closest_feature.html" class="external-link">s2::s2_dwithin_matrix()</a></code>:</p>
<div class="sourceCode" id="cb83"><pre class="downlit sourceCode r">
<code 