R version 4.6.0 RC (2026-04-22 r89945 ucrt) -- "Because it was There" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > library(testthat) > library(gpr) > test_check("gpr") -- gpr: Power Analysis for t-tests ----------------------------- Test: two.sample Analysis: A Priori: Compute required sample size Alternative: two.sided ------------------------------------------------------------------ Effect size (d): 0.5000 Alpha (α): 0.050000 Power (1-β): 0.8015000 Beta (β): 0.1985 Noncentrality (δ): 2.8284271 Critical t: 1.9789706 Df: 126 Sample size group 1: 64 Sample size group 2: 64 Total sample size: 128 ------------------------------------------------------------------ -- gpr: Power Analysis for F-tests ----------------------------- Test: anova.one.way Analysis: A Priori: Compute required sample size ------------------------------------------------------------------ Effect size (f): 0.2500 Alpha (α): 0.050000 Power (1-β): 0.8048873 Beta (β): 0.1951 Noncentrality (λ): 9.9375000 Critical F: 3.0540042 Numerator df: 2 Denominator df: 156 Sample size per group: 53 Total sample size: 159 ------------------------------------------------------------------ -- gpr: Power Analysis for Chi-Square Tests --------------------- Test: gof Analysis: A Priori: Compute required sample size ------------------------------------------------------------------ Effect size (w): 0.3000 Alpha (α): 0.050000 Power (1-β): 0.8015133 Beta (β): 0.1985 Noncentrality (λ): 12.8700000 Critical Chi-sq: 11.0704977 Df: 5 Total sample size: 143 ------------------------------------------------------------------ -- gpr: Power Analysis for Exact Tests -------------------------- Test: proportion.one.sample Analysis: A Priori: Compute required sample size Tails: 2 ------------------------------------------------------------------ Effect size (g): 0.1500 P (H0): 0.5000 P (H1): 0.6500 Alpha (α): 0.050000 Actual α: 0.0445975 Power (1-β): 0.8122881 Beta (β): 0.1877 Lower critical N: 35 Upper critical N: 55 Total sample size: 90 ------------------------------------------------------------------ [ FAIL 0 | WARN 0 | SKIP 0 | PASS 9 ] > > proc.time() user system elapsed 1.65 0.20 1.84