Install and load pwrss R package:

install.packages("pwrss")
library(pwrss)