gpclib

General polygon clipping routines for R based on Alan Murta's C library (GPC).

Compatibility updates by Renova.

Version 1.5.6.9001 changes two .Call sites in R/Rgpc.R: the union method and tristrip now call the registered native symbols C_Rgpc_polygon_clip and C_Rgpc_polygon_to_tristrip instead of string names, as intersect and setdiff already did, matching the package's useDynLib(gpclib, .registration = TRUE, .fixes = "C_") and its R_forceSymbols registration. No C code or DESCRIPTION field was changed.

Install

From R-universe:

install.packages("gpclib", repos = c(
  Renova = "https://renova-r.r-universe.dev",
  CRAN = "https://cloud.r-project.org"
))

Or the exact release tag:

install.packages("remotes")
remotes::install_github("renova-r/gpclib@renova-1.5.6.9001")

Release notes ยท Renova package directory

gpclib was written by Roger D. Peng (maintainer) with contributions from Duncan Murdoch and Barry Rowlingson; the bundled General Polygon Clipper (GPC 2.32) is by Alan Murta, University of Manchester. License: file LICENSE. Free for non-commercial use; commercial use is prohibited (see LICENSE, src/gpc.c and src/gpc.h).