An R package for paths manipulation