R package to calculate and verify check digits