The Calculator module in run_app()
evaluates distribution-function scripts. The same engine is available as
ggpower_calculator().
Basic arithmetic
ggpower_calculator("2^3 + 1")
#> [1] 9Inverse normal
ggpower_calculator("zinv(0.975)")
#> [1] 1.959964Noncentral t CDF
ggpower_calculator("nctcdf(1.699127, 29, 3.423266)")
#> [1] 0.04485563Multi-line script
ggpower_calculator("alpha <- 0.05
nctcdf(1.699127, 29, 3.423266)")
#> [1] 0.04485563