Search button for Leaflet R map?
<p>I'm using the leaflet library in R, which is a wrapper to the leaflet.js library. I'm wondering if it is possible to add a query or search button using the R interface (or some hack to the underlying code)? There are search plug-ins to the javascript library here <a href="http://leafletjs.com/plugins.html#search--popups" rel="nofollow">http://leafletjs.com/plugins.html#search--popups</a>, but I can't figure out how to get them to work with the javascript that comes out from the R library.</p>

<p>As a minimal example, I want to add to the following the ability to search for "location 1" in the following map, and have it display the popup:</p>

<pre><code>library(leaflet)
df = read.csv(textConnection(
  'Name, Lat, Long
  &lt;b&gt;location 1&lt;/b&gt;,42.3401, -71.0589
  &lt;b&gt;location 2&lt;/b&gt;,42.3501, -71.0689'))

leaflet(df) %&gt;% 
  addTiles() %&gt;%
  setView(lng=-71.0589,lat=42.3301, zoom=12) %&gt;%
  addMarkers(~Long, ~Lat, popup = ~Name
  )
</code></pre>