Running ‘testthat.R’ [3s/79s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(seminr)
  > Sys.unsetenv("R_TESTS")
  > test_check("seminr")
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrapped── 1. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#39
  bootmatrix[, 2] not equal to bootmatrix_control[, 2].
  3/3 mismatches (average diff: 0.0073)
  [1] 0.448 - 0.451 == -0.00301
  [2] 0.172 - 0.163 ==  0.00944
  [3] 0.312 - 0.321 == -0.00943
  
  ── 2. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#40
  bootmatrix[, 3] not equal to bootmatrix_control[, 3].
  3/3 mismatches (average diff: 0.0019)
  [1] 0.0567 - 0.0588 == -0.00211
  [2] 0.0615 - 0.0628 == -0.00137
  [3] 0.0709 - 0.0686 ==  0.00223
  
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrapped── 3. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#88
  bootmatrix[, 2] not equal to bootmatrix_control[, 2].
  5/5 mismatches (average diff: 0.00568)
  [1]  0.4632 -  0.46570 == -0.00250
  [2]  0.1616 -  0.15430 ==  0.00731
  [3]  0.2925 -  0.30091 == -0.00844
  [4] -0.1217 - -0.11678 == -0.00495
  [5] -0.0146 - -0.00941 == -0.00520
  
  ── 4. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#89
  bootmatrix[, 3] not equal to bootmatrix_control[, 3].
  5/5 mismatches (average diff: 0.00256)
  [1] 0.0534 - 0.0559 == -0.00249
  [2] 0.0566 - 0.0591 == -0.00252
  [3] 0.0650 - 0.0623 ==  0.00270
  [4] 0.1325 - 0.1354 == -0.00281
  [5] 0.0893 - 0.0871 ==  0.00226
  
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrappedGenerating the seminr model
  All 250 observations are valid.
  Models with interactions can be estimated as PLS consistent, but are subject to some bias as per Becker et al. (2018)
          'Estimating Moderating Effects in PLS-SEM and PLSc-SEM: Interaction Term Generation*Data Treatment'
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Models with interactions can be estimated as PLS consistent, but are subject to some bias as per Becker et al. (2018)
          'Estimating Moderating Effects in PLS-SEM and PLSc-SEM: Interaction Term Generation*Data Treatment'
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrapped── 5. Failure: Seminr estimates the t-values correctly (@test-summary.R#90)  ───
  `t_values` not equal to `t_values_control`.
  3/3 mismatches (average diff: 0.218)
  [1] 7.89 - 7.55 ==  0.3326
  [2] 2.73 - 2.66 ==  0.0728
  [3] 4.24 - 4.49 == -0.2487
  
  ── 6. Failure: Seminr estimates the p-values correctly (@test-summary.R#94)  ───
  `p_values` not equal to `p_values_control`.
  2/3 mismatches (average diff: 0.000799)
  [2] 6.59e-03 - 8.17e-03 == -1.58e-03
  [3] 2.62e-05 - 8.75e-06 ==  1.74e-05
  
  Generating the seminr model
  All 250 observations are valid.
  Bootstrapping model using seminr...
  SEMinR Model successfully bootstrapped── 7. Failure: Seminr evaluates the factor discriminant validity t_values contro
  `factor_discriminant_validity_t_values` not equal to `factor_discriminant_validity_t_values_control`.
  6/16 mismatches (average diff: 0.117)
  [5]  0.913 - 0.78 == 0.1328
  [9]  4.946 - 4.78 == 0.1642
  [10] 3.357 - 3.18 == 0.1767
  [13] 2.556 - 2.47 == 0.0892
  [14] 1.307 - 1.20 == 0.1063
  [15] 3.481 - 3.45 == 0.0354
  
  ── 8. Failure: Seminr evaluates the factor discriminant validity p_values correc
  `factor_discriminant_validity_p_values` not equal to `factor_discriminant_validity_p_values_control`.
  5/16 mismatches (average diff: 0.0233)
  [5]  0.361636 - 0.435577 == -7.39e-02
  [10] 0.000848 - 0.001563 == -7.15e-04
  [13] 0.010881 - 0.013963 == -3.08e-03
  [14] 0.191838 - 0.230477 == -3.86e-02
  [15] 0.000543 - 0.000617 == -7.43e-05
  
  ── 9. Failure: Seminr evaluates the composite indicator t values correctly (@tes
  `composite_indicator_weights_t_values` not equal to `composite_indicator_weights_t_values_control`.
  5/10 mismatches (average diff: 0.441)
  [1]  20.5 - 20.9 == -0.422
  [2]  21.0 - 20.5 ==  0.567
  [8]  19.4 - 19.7 == -0.285
  [9]  20.1 - 20.9 == -0.804
  [10] 19.2 - 19.1 ==  0.125
  
  Generating the seminr model
  All 250 observations are valid.
  Generating the seminr model
  All 250 observations are valid.
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 68 SKIPPED: 0 FAILED: 9
  1. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#39) 
  2. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#40) 
  3. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#88) 
  4. Failure: Seminr performs the bootstrapping correctly (@test-bootstrap.R#89) 
  5. Failure: Seminr estimates the t-values correctly (@test-summary.R#90) 
  6. Failure: Seminr estimates the p-values correctly (@test-summary.R#94) 
  7. Failure: Seminr evaluates the factor discriminant validity t_values control correctly (@test-summary.R#186) 
  8. Failure: Seminr evaluates the factor discriminant validity p_values correctly (@test-summary.R#190) 
  9. Failure: Seminr evaluates the composite indicator t values correctly (@test-summary.R#209) 
  
  Error: testthat unit tests failed
  Execution halted