An R package for statistical provenance analysis