`CoRpower`

is an R package implementing power calculations
described in *Gilbert PB, Janes HE, Huang Y. Power/sample size
calculations for assessing correlates of risk in clinical efficacy
trials. Statistics in Medicine. 2016;35(21):45-59.*

The vignette titled *Introduction to R Package CoRpower*
describes in depth how to use the package.