I want to know the sample size required. In R
library(pwr)
pwr.2p.test(h = ES.h(0.022,0.001),sig.level = 0.05,power = 0.8,alternative = "greater")
gives the results
Difference of proportion power calculation for binomial distribution (arcsine transformation)
h = 0.2344905
n = 224.8784
sig.level = 0.05
power = 0.8
alternative = greater
NOTE: same sample sizes
In G*Power tool,
the result is

My question is, why the sample sizes from R and G*Power differ so much (225 vs 318)? Thanks.