Running ‘testthat.R’ [148s/264s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(CausalGPS)
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("CausalGPS")
  2023-05-05 15:32:20.701575 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:32:33.527211 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-05 15:32:34.081922 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-05 15:32:34.442091 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-05 15:32:38.940573 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:32:58.19757 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-05 15:32:58.220767 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-05 15:32:58.265561 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-05 15:32:58.400784 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:33:00.764055 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-05 15:33:01.092092 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-05 15:33:01.424947 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-05 15:33:02.921277 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-05 15:33:02.928778 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-05 15:33:02.932667 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-05 15:33:02.944359 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-05 15:33:02.948236 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-05 15:33:02.952277 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-05 15:33:02.956219 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-05 15:33:03.18846 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-05 15:33:03.19248 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-05 15:33:03.196507 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-05 15:33:03.452482 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-05 15:33:03.460667 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-05 15:33:03.469184 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-05 15:33:03.704997 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:33:20.968473 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-05 15:33:21.158524 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-05 15:33:21.562529 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-05 15:33:21.765084 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:33:44.571801 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-05 15:33:45.179386 gimli2 1031448 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-05 15:33:45.51006 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-05 15:33:48.556168 gimli2 1031448 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-05 15:33:48.669131 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:34:20.272674 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-05 15:34:21.655743 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-05 15:34:27.47402 gimli2 1031448 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-05 15:34:27.585419 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:34:57.349063 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-05 15:34:58.91141 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-05 15:35:03.794448 gimli2 1031448 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-05 15:35:04.110682 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:10.503536 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-05 15:35:11.701785 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-05 15:35:11.758644 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-05 15:35:11.881086 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:15.370455 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:16.259534 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:16.302653 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-05 15:35:16.368969 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.411622 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.476806 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.524707 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.574013 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.648952 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.721697 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.792942 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:16.876666 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:20.298905 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:20.3044 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:20.366227 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-05 15:35:20.473103 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:23.98668 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:24.990833 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:28.170511 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:28.920891 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:31.852713 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:32.896635 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:35.46188 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:36.485881 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:36.515323 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-05 15:35:36.581876 gimli2 1031448 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-04 r84395), detected cores: 32
  2023-05-05 15:35:38.570062 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:39.504297 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:41.32727 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:42.208071 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:44.428129 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:45.396154 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:47.595445 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:48.596529 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:50.643554 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:51.574633 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:53.248317 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:54.133082 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:55.744278 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-05 15:35:56.772172 gimli2 1031448 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-05 15:35:56.785924 gimli2 1031448 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 22.7748385392029, recommended min value: 46.
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-compile_pseudo_pop.R:65:3'): Compiling pseudo pop works as expected. ──
  mean(pseudo_pop_2$counter_weight) not equal to 0.7465975.
  1/1 mismatches
  [1] 0.746 - 0.747 == -0.000738
  ── Failure ('test-compute_density.R:10:3'): compute_density works ──────────────
  cd[10] not equal to 0.537411.
  1/1 mismatches
  [1] 0.537 - 0.537 == -0.000478
  ── Failure ('test-estimate_npmetric_erf.R:34:3'): estimate_npmetric_erf works as expected ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-estimate_npmetric_erf.R:74:3'): estimate_npmetric_erf works as expected (with earth) ──
  res$risk_val[1] not equal to 1305125.
  1/1 mismatches
  [1] 1304486 - 1305125 == -639
  ── Failure ('test-generate_pseudo_pop.R:248:3'): generate_pseudo_pop works as expected. ──
  ps_pop3$adjusted_corr_results$mean_absolute_corr not equal to 0.3750209.
  1/1 mismatches
  [1] 0.375 - 0.375 == -1.21e-06
  
  [ FAIL 5 | WARN 88 | SKIP 0 | PASS 205 ]
  Error: Test failures
  Execution halted