An R package for numerical integration over polygonal domains