An R package for working with connectivity