the gambin R package