Running ‘testthat.R’ [121s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # 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(power4mome)
  > 
  > test_check("power4mome")
  Starting 2 test processes.
  > test-power4test_mg.R: 
  > test-power4test_mg.R: Updating the simulation for sample size: 150 
  > test-power4test_mg.R: Re-simulate the data:
  > test-power4test_mg.R: Fit the model(s):
  > test-power4test_mg.R: Update the test(s):
  > test-power4test_mg.R: Update test_parameters: CIs (pars: m~x,m~x.g2) :
  > test-power4test_mg.R: 
  > test-power4test_mg.R: Updating the simulation for sample size: 200 
  > test-power4test_mg.R: Re-simulate the data:
  > test-power4test_mg.R: Fit the model(s):
  > test-power4test_mg.R: Update the test(s):
  > test-power4test_mg.R: Update test_parameters: CIs (pars: m~x,m~x.g2) :
  Saving _problems/test-test_indirects-62.R
  [ FAIL 1 | WARN 0 | SKIP 76 | PASS 501 ]
  
  ══ Skipped tests (76) ══════════════════════════════════════════════════════════
  • A long test with parallel processing. Test interactively (4):
    'test-power4test_update_parallel.R:1:1',
    'test-q_functions_pba_long_parallel.R:1:1',
    'test-q_functions_pba_long_serial.R:1:1',
    'test-q_functions_pba_long_simple.R:1:1'
  • A long test with parallel processing. Test interactively. (12):
    'test-do_FUN_local_function.R:1:1',
    'test-x_from_power_algorithm_bisection.R:1:1',
    'test-x_from_power_algorithm_prob_bisection.R:1:1',
    'test-x_from_power_algorithm_prob_bisection_indirect.R:1:1',
    'test-x_from_power_algorithm_prob_bisection_reuse_trials.R:1:1',
    'test-x_from_power_for_es.R:1:1',
    'test-x_from_power_for_es_bisection_close_enough.R:1:1',
    'test-x_from_power_for_es_ind.R:1:1', 'test-x_from_power_for_n.R:1:1',
    'test-x_from_power_for_n_bisection.R:1:1',
    'test-x_from_power_for_n_bisection_close_enough.R:1:1',
    'test-x_from_power_for_n_prob_bisection_close_enough.R:1:1'
  • Graphs: Test interactively (1): 'test-x_from_power_for_n_short_plot.R:1:1'
  • Internal (5): 'test-pba_diag.R:1:1',
    'test-x_from_power_algorithm_bisection_difficult_cases.R:1:1',
    'test-x_from_power_algorithm_prob_bisection_check_sequence.R:1:1',
    'test-x_from_power_for_es_check_extend.R:1:1',
    'test-x_from_power_for_n_check_extend.R:1:1'
  • Internal: Only valid under a specific configuration (1):
    'test-x_from_power_for_n_escape_a_loop.R:1:1'
  • Not used (2): 'test-x_from_power_algorithm_bisection_extend_interval.R:1:1',
    'test-x_from_power_algorithm_bisection_short.R:1:1'
  • On CRAN (51): 'test-add_cov_indicators.R:1:1', 'test-add_cov.R:1:1',
    'test-do_test_catch_error.R:1:1', 'test-power4test_mg2.R:1:1',
    'test-power_curve.R:1:1', 'test-q_functions_arbitrary.R:1:1',
    'test-q_functions_parallel.R:1:1',
    'test-q_functions_pba_short_parallel.R:1:1',
    'test-q_functions_pba_short_serial.R:1:1',
    'test-q_functions_pba_short_simple.R:1:1', 'test-q_functions_serial.R:1:1',
    'test-q_functions_simple.R:1:1', 'test-q_functions_simple_bz.R:1:1',
    'test-q_functions_simple_reject.R:1:1', 'test-sim_data_print_cond.R:1:1',
    'test-sim_data_print_cond_only.R:1:1',
    'test-test_extrapolate_cond_indirect.R:1:1',
    'test-test_extrapolate_indirect.R:1:1',
    'test-test_extrapolate_indirects.R:1:1', 'test-test_extrapolate_mome.R:1:1',
    'test-test_extrapolate_part_cond_indirect.R:1:1',
    'test-test_extrapolate_part_indirect.R:1:1',
    'test-test_extrapolate_part_indirects.R:1:1',
    'test-test_extrapolate_part_mome.R:1:1', 'test-test_iseed.R:1:1',
    'test-test_power_by_es_catch_power4test_error.R:1:1',
    'test-test_power_by_es_find_range.R:1:1',
    'test-test_power_by_n_catch_power4test_error.R:1:1',
    'test-x_from_power_algorithm_prob_bisection_short_es.R:1:1',
    'test-x_from_power_algorithm_prob_bisection_short_n.R:1:1',
    'test-x_from_power_for_es_error_catch.R:1:1',
    'test-x_from_power_for_es_more_than_one_result.R:1:1',
    'test-x_from_power_for_es_short.R:1:1',
    'test-x_from_power_for_es_short_close.R:1:1',
    'test-x_from_power_for_es_short_close_power_curve_point.R:1:1',
    'test-x_from_power_for_es_short_close_power_curve_ublb.R:1:1',
    'test-x_from_power_for_es_short_use_by.R:1:1',
    'test-x_from_power_for_es_short_use_x_from.R:1:1',
    'test-x_from_power_for_n_error_catch.R:1:1',
    'test-x_from_power_for_n_merge_all_tests.R:1:1',
    'test-x_from_power_for_n_more_than_one_rr.R:1:1',
    'test-x_from_power_for_n_region_merge_all_tests.R:1:1',
    'test-x_from_power_for_n_region_reject.R:1:1',
    'test-x_from_power_for_n_short.R:1:1',
    'test-x_from_power_for_n_short_close.R:1:1',
    'test-x_from_power_for_n_short_close_power_curve_point.R:1:1',
    'test-x_from_power_for_n_short_close_power_curve_ublb.R:1:1',
    'test-x_from_power_for_n_short_n_region.R:1:1',
    'test-x_from_power_for_n_short_reject.R:1:1',
    'test-x_from_power_for_n_short_use_by_n.R:1:1',
    'test-x_from_power_for_n_short_use_x_from.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-test_indirects.R:61:1'): indirect effects ────────────────────
  Expected `chk[[1]]$sig[1]` to equal `chkb[[1]]$sig[1]`.
  Differences:
    `actual`: 0.00
  `expected`: 0.20
  
  
  [ FAIL 1 | WARN 0 | SKIP 76 | PASS 501 ]
  Error:
  ! Test failures.
  Execution halted