title: Polygons are not splitting across the international dateline as expected in R using sf st_wrap_dateline
body: <p>I have polygons that cross the dateline, however are instead inverting and wrapping away from the dataline.</p>
  <p>As an example the code here should produce a complete hex grid of 122 cells and break on the dateline. My thinking has been that st_wrap_dateline should cause the inverted polygons to split by inserting a line along the dateline and create multiple polygons. I'm not sure what next to try.</p>
  <p>Code and output below.</p>
  <p>Any assistance would be most appreciated.</p>
  <pre><code>install.packages(&quot;h3jsr&quot;)
  install.packages(&quot;sf&quot;)
  
  library(&quot;h3jsr&quot;)
  library(&quot;sf&quot;)
  
  
  # Make number sequence
  pts  = as.data.frame(merge(seq (-90,90,1),seq (0,360,1),all=TRUE))
  colnames(pts) &lt;- c(&quot;LAT&quot;,&quot;LON&quot;)
  
  pts_ &lt;- st_as_sf(x = pts, coords = c(&quot;LON&quot;,&quot;LAT&quot;),crs = 4326)
  
  # resolve H3 index at Resolution
  pts_H3 &lt;- point_to_h3(pts_, res = 0, simple = FALSE)
  
  pts_H3 &lt;- as.data.frame(table(pts_H3$h3_resolution_0))
  
  getH3_Poly &lt;- h3_to_polygon(pts_H3$Var1,simple=FALSE)
  
  # timeline wrap
  getH3_Poly &lt;- st_wrap_dateline(getH3_Poly, options = c(&quot;WRAPDATELINE=YES&quot;))
  plot(getH3_Poly)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/xDt2l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xDt2l.png" alt="The image is produced from plot - and shows how the polygon inverts" /></a></p>