An R package for power and boundary calculations in