title: Saving leaflet output as html
body: <p>I am using RStudio to create some some leaflet images.</p>
  
  <p>I would like to be able to save the output as an HTML so that it can be emailed and others can view it.</p>
  
  <p>Below is some sample R code which was taken from [here] to create a sample leaflet image.</p>
  
  <pre><code>devtools::install_github('rstudio/leaflet')
  library(leaflet)
  rand_lng = function(n = 10) rnorm(n, -93.65, .01)
  rand_lat = function(n = 10) rnorm(n, 42.0285, .01)
  m = leaflet() %&gt;% addTiles() %&gt;% addCircles(rand_lng(50), rand_lat(50), radius = runif(50, 10, 200))
  m
  </code></pre>
  
  <p>Any code to be able to the output as HTML would be much appreciated...</p>