title: Leaflet for R clear raster with shiny
body: <p>I'm wondering if their is a way to clear a raster image with shiny when the user click on some radio button. I saw there is a function to clear polygons -  <code>clearshape()</code> but I need to do the same with my raster image. </p>
  
  <pre><code>leafletProxy("map", data = filteredData()) %&gt;%
               addRasterImage(r, colors=pal, opacity = 0.9, maxBytes = 123123123) %&gt;%
               clearShapes()
  </code></pre>
  
  <p>This does not work...</p>