There are many R packages that can replicate the GPower capability. For example, the "pwr" package, which has the pwr.t.test() function to perform power calculations for t-tests of means (1-, or 2-sample, etc). To give more specific advice, we would need to know which of the many GPower methods you want to reproduce.
1 Like