title: How to specify a minimum distance between points in sf::st_sample?
body: <p>Is there a way to specify a minimum distance between points in <code>sf::st_sample</code> for <code>type</code> = random or regular?</p>
  <pre><code>library(sf)
  
  #Data download
  
  download.file(url = &quot;http://geo.fbds.org.br/SP/RIO_CLARO/USO/SP_3543907_USO.dbf&quot;, 
                destfile = &quot;SP_3543907_USO.dbf&quot;, mode = &quot;wb&quot;)
  download.file(url = &quot;http://geo.fbds.org.br/SP/RIO_CLARO/USO/SP_3543907_USO.prj&quot;, 
                destfile = &quot;SP_3543907_USO.prj&quot;, mode = &quot;wb&quot;)
  download.file(url = &quot;http://geo.fbds.org.br/SP/RIO_CLARO/USO/SP_3543907_USO.shp&quot;, 
                destfile = &quot;SP_3543907_USO.shp&quot;, mode = &quot;wb&quot;)
  download.file(url = &quot;http://geo.fbds.org.br/SP/RIO_CLARO/USO/SP_3543907_USO.shx&quot;, 
                destfile = &quot;SP_3543907_USO.shx&quot;, mode = &quot;wb&quot;)
  
  #Data import
  
  uso &lt;- sf::st_read(&quot;SP_3543907_USO.shp&quot;) # pode demorar
  uso
  
  #Data plot
  
  plot(uso$geometry)
  
  #Random points
  
  pts &lt;- st_sample(uso, size = 20, type=&quot;random&quot;)
  pts &lt;- st_sf(pts)
  </code></pre>