Running ‘testthat.R’ [145s/237s]
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-12 15:31:41.43716 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:31:52.023549 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-12 15:31:52.574458 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  19.9149974416582 in  0.5  radius.
  2023-05-12 15:31:52.936131 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-12 15:31:56.892926 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:32:13.62441 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-12 15:32:13.631996 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-12 15:32:13.658552 gimli2 1541855 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 7.36082124077708, recommended min value: 49.
  2023-05-12 15:32:13.78195 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:32:16.281785 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 196) ... 
  2023-05-12 15:32:16.490354 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  21.2300763979248 in  0.5  radius.
  2023-05-12 15:32:16.678188 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 196)
  2023-05-12 15:32:17.741495 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 100) ... 
  2023-05-12 15:32:17.748877 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -8.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.75255 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -7.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.755973 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -6.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.759509 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -5.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.762861 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -4.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.76622 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  -3.74760785492387 in  0.5  radius.
  2023-05-12 15:32:17.943006 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  21.2523921450761 in  0.5  radius.
  2023-05-12 15:32:17.947456 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  22.2523921450761 in  0.5  radius.
  2023-05-12 15:32:17.95143 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  23.2523921450761 in  0.5  radius.
  2023-05-12 15:32:18.143124 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 100)
  2023-05-12 15:32:18.152403 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 1000) ... 
  2023-05-12 15:32:18.158217 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 1000)
  2023-05-12 15:32:18.401026 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:32:35.333045 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-12 15:32:35.556106 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-12 15:32:35.805983 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-12 15:32:36.012995 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:32:56.149708 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
  2023-05-12 15:32:56.823005 gimli2 1541855 CausalGPS FUN WARN:  There is no data to match with  17.0145640770203 in  0.5  radius.
  2023-05-12 15:32:57.176336 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
  2023-05-12 15:32:59.893764 gimli2 1541855 CausalGPS estimate_gps WARN:  Vector w has 1 missing values.
  2023-05-12 15:33:00.021192 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:33:25.822058 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-12 15:33:27.106477 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-12 15:33:32.037529 gimli2 1541855 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-12 15:33:32.129912 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:33:58.899651 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 392) ... 
  2023-05-12 15:34:00.299242 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 392)
  2023-05-12 15:34:06.498332 gimli2 1541855 CausalGPS estimate_npmetric_erf INFO:  The band width with the minimum risk value: 2.
  2023-05-12 15:34:06.776982 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:12.64481 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 490) ... 
  2023-05-12 15:34:13.444608 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 490)
  2023-05-12 15:34:13.471759 gimli2 1541855 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 26.1426863179163, recommended min value: 49.
  2023-05-12 15:34:13.666109 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:16.388251 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:17.209733 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:17.27941 gimli2 1541855 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5023661048217, recommended min value: 46.
  2023-05-12 15:34:17.33296 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.380838 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.428784 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.481769 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.528157 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.566967 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.632087 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.678146 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:17.719786 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:21.067473 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:21.08863 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:21.131104 gimli2 1541855 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 3.24100498567868, recommended min value: 46.
  2023-05-12 15:34:21.23845 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:23.749774 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:24.594648 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:27.318563 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:28.252393 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:31.040565 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:32.011692 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:34.785046 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:35.566958 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:35.595557 gimli2 1541855 CausalGPS generate_pseudo_pop WARN:  Effective sample size is less than recommended.Current: 20.5161021345085, recommended min value: 46.
  2023-05-12 15:34:35.705039 gimli2 1541855 CausalGPS log_system_info INFO:  System name: Linux, OS type: unix, machine architecture: x86_64, user: hornik, R Under development (unstable) (2023-05-11 r84422), detected cores: 32
  2023-05-12 15:34:37.271002 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:38.151114 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:39.868663 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:40.868903 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:42.14591 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:43.143099 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:44.522599 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:45.364721 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:46.892901 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:47.732229 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:49.650987 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:50.680556 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:52.520653 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 460) ... 
  2023-05-12 15:34:53.397664 gimli2 1541855 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 460)
  2023-05-12 15:34:53.414542 gimli2 1541855 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