R and Leaflet: How to arrange label text across multiple lines : <p>Suppose you have the following data frame:</p>

<pre><code>cities = data.frame( name = c('Madrid','Barcelona','Sevilla'),
                 country = c('Spain','Spain','Spain'),
                 region = c('Comunidad de Madrid','Cataluña','Andalucia'),
                 data = c(100, 200, 300), 
                 lng = c(-3.683333,2.166667,-6.083333),
                 lat = c(40.433333,41.383333,37.446667))
</code></pre>

<p>My idea is to have a map of these cities and labels that could display some relevant information when hovering the corresponding city circles. I'd like to have the label text arranged in several lines. The very first approach below failed:</p>

<pre><code>library( leaflet )

map = leaflet( cities ) %&gt;%
addTiles() %&gt;%
addCircles( lng = ~lng, lat = ~lat, fillColor = 'darkBlue', radius = 10000, 
          stroke = FALSE, fillOpacity = 0.8, label = paste0( cities$name,'\n', cities$region, '\n', cities$country, '\n', cities$data ) )
</code></pre>

<p>as well as other similar attempts. After googling a while, I found a possible solution by involving the <em>htmltools</em> package:</p>

<pre><code>library( htmltools )
map2 = leaflet( cities ) %&gt;%
addTiles() %&gt;%
addCircles( lng = ~lng, lat = ~lat, fillColor = 'darkBlue', radius = 10000, 
          stroke = FALSE, fillOpacity = 0.8, 
          label = HTML( paste0( '&lt;p&gt;', cities$name, '&lt;p&gt;&lt;/p&gt;', cities$region, ', ', cities$country,'&lt;/p&gt;&lt;p&gt;', cities$data, '&lt;/p&gt;' ) ) )
</code></pre>

<p>In this case, the information is displayed as I'd like but, within the same label, there is an entry for each city of the dataset. How could I do to have the text of a single city arranged in multiple lines? Any help would be really appreciated</p>
