Running ‘testthat.R’ [85s/127s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(Superpower)
  > 
  > 
  > test_check("Superpower")
  Optimal Alpha & Beta for ANOVA tests
    effect cohen_f num_df den_df  alpha   beta objective
  1      a  0.2513      1    198 0.0501 0.0574   0.05375
  
  Power and Effect sizes for ANOVA tests
          power effect_size
  anova_a    10      0.1649
  
  Power and Effect sizes for pairwise comparisons (t-tests)
              power effect_size
  p_a_a1_a_a2    10     0.03934
  
  
  Within-Subject Factors Included: Check MANOVA Results
  
  Power and Effect sizes for ANOVA tests
          power effect_size
  anova_a     0     0.04419
  
  Power and Effect sizes for pairwise comparisons (t-tests)
              power effect_size
  p_a_a1_a_a2     0    -0.08414
  
  Power and Cohen's f from estimated marginal means
         contrast power cohen_f
  p_1 a_a1 - a_a2     0  0.1591
  
  
  Within-Subject Factors Included: Check MANOVA Results
  
  Power and Effect sizes for ANOVA tests
          power effect_size
  anova_a     0     0.03276
  
  Power and Effect sizes for pairwise comparisons (t-tests)
              power effect_size
  p_a_a1_a_a2     0      0.1704
  
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (10)
  • empty test (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-justifieR.R:45:3): power_standardized_alpha ─────────────────────
  Error: invalid printing digits 0
  Backtrace:
      █
   1. └─Superpower::power_standardized_alpha(...) test-justifieR.R:45:2
   2.   └─stats::optimize(...)
   3.     └─(function (arg) ...
   4.       └─Superpower:::f(arg, ...)
   5.         ├─base::print(x, y, max(y - power, power - y))
   6.         └─base::print.default(x, y, max(y - power, power - y))
  ── Error (test-justifieR.R:54:3): power_standardized_alpha ─────────────────────
  Error: invalid printing digits 0
  Backtrace:
      █
   1. └─Superpower::power_standardized_alpha(...) test-justifieR.R:54:2
   2.   └─stats::optimize(...)
   3.     └─(function (arg) ...
   4.       └─Superpower:::f(arg, ...)
   5.         ├─base::print(x, y, max(y - power, power - y))
   6.         └─base::print.default(x, y, max(y - power, power - y))
  
  [ FAIL 2 | WARN 0 | SKIP 15 | PASS 359 ]
  Error: Test failures
  Execution halted