Binary package “r-cran-polyclip” in ubuntu bionic

GNU R Polygon Clipping

 R port of the Clipper library. Performs polygon clipping operations
 (intersection, union, set minus, set difference) for polygonal regions
 of arbitrary complexity, including holes. Also computes offset polygons
 (spatial buffer zones, morphological dilations, Minkowski dilations) for
 polygonal regions and polygonal lines.