Thanks @rsbivand. With regard to rgeos::createPolygonsComment, it looks to me like we use this for sp Polygons objects whenever they're missing comment data indicating, for each hole, what non-hole they belong to.
createPolygonsComment attempts to create a valid comment for a Polygons object by assessing which polygons contain a given hole (using gContains). Ownership is assigned to the smallest polygon (by area) that contains the given hole.
rstudio/leaflet#833