title: Trouble using the leaflet package to make an interactive map using the us.cities package
body: <p>I am trying to make an interactive graph of the United States using leaflet and the us.cities package in R. I was able to create the map and label put markers on all the US capitals, but I am struggling to label those capitals on the map itself.</p>
  <p>The goal is to be able to click on a marker and have the state capital and population appear on the graph. The trouble is steaming from my last section of code that starts with the #. If anyone has any idea why that code will not run, besides the obvious fact that I put a # in front, I am open to any and all guidance!</p>
  <p>Thank you!</p>
  <pre><code>library(leaflet)
  library(dplyr)
  library(maps)
  
  leaflet(us.cities) %&gt;% addTiles() %&gt;% addCircleMarkers(data = us.cities)
  
  us.cities &lt;- us.cities %&gt;% filter(capital == 2) %&gt;% mutate(state_info = paste(name, capital == 2, pop))
  
  us.cities$state_info
  
  #leaflet(us.cities) %&gt;% addTiles() %&gt;% addCircleMarkers(data = us.cities, lat = ~lat, lng = ~long, state_info = ~state_info)
  </code></pre>