I have a Delaunay triangulation in a polygon with a hole (a so-called constrained Delaunay triangulation):
I'm able to construct the Voronoi cells by the duality principle. But some of them go outside the polygon (they go in the hole or outside the big perimeter):
How could I clip the Voronoi cells to the boundary of the big polygon? Maybe with the sf package, but I never used it.
(NB: the two pictures do not have the same scale.)
Edit
No sorry, that's not correct. Here is the picture with the Voronoi cells to which I added the big polygon:
So in fact I discarded the cells that go outside the polygon.
Will see if I can I change that but probably I will delete this question (and perhaps open a new one).



With {sf} you could try along the exemplary lines below. A polygon with hole can be used for clipping, too.
Converting the result of
st_voronoito a clippable multipolygon turned out some hazzle.edit Alternative with {deldir}: