The EnvStats functions listed below are useful for power and sample size calculations.
Extended methods and derivations are available in
Statistical power and study design: FcnsByCatPower.
Open the vignette locally with
vignette("power-and-study-design", package = "EnvStats").